Commit 8844f9df authored by Pablo COVES's avatar Pablo COVES

README.md and installation snippet.

parent e918b89d
# Tmux
Yet, another tmux configuration.
## Install
bash -c "$(curl -fsSL https://gitlab.com/pcoves/tmux/snippets/1687883/raw)"
No fancy stuff in this [script](https://gitlab.com/pcoves/tmux/snippets/1687883/raw).
## Requirements
* Git
## Usage
<kbd>Ctrl-S I</kbd> (that's a capital `i`) after starting tmux will install/update plugins.
## Plugins
### Add
1) Edit ~/.tmux/tmux.conf and add git urls as in [here](https://github.com/tmux-plugins/tpm#installation)
2) See the Usage section.
### Remove
1) Remove git urls added in the Add section.
2) See the Usage section.
## Tips
### Auto-tmux
This boilerplate `bashrc` code will start a tmux session on terminal opening if needed or join an existing one otherwise.
if [[ -n "$DISPLAY" && $TMUX = "" ]]; then
tmux ls | grep -vq attached && TMUXARG="attach-session -d"
exec eval "tmux -2 $TMUXARG"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment