- tmux (2.5)
- Python (this documentation is assuming Python3 is installed even though setup would be working with minor modifications with Python 2.7)
- powerline, awesome statusline for vim and couple of several other awesome applications
- Tmux Better Mouse Mode, tmux plugin to better manage your mouse
- Clone this repo:
git clone https://github.com/kemals/tmux-dotfiles
- Backup current configuration file, if you have one:
cp ~/.tmux.conf ~/.tmux.conf.bac
- Copy cloned config file as new .tmux.conf:
cp tmux-dotfiles/config/tmux.conf ~/.tmux.conf
- In case you don't have powerline installed, install it with:
pip install powerline-status
- In case you don't have Tmux Better Mouse Mode plugin installed, install it with:
cd ~/Documents
git clone https://github.com/NHDaly/tmux-better-mouse-mode
- Start tmux and profit!
tmux
tmux.conf already containts some of the relevant shortcuts documented, but this cheat sheet contains a lot of useful information!
- < CTRL b > < CTRL b > - Go to previous window
- < CTRL b > < CTRL k > - Clear history
- < CTRL b > < r > - Reload tmux
- < CTRL b > < P > - Save content of buffer to the file
- < CTRL b > < Escape > - Enter 'copy' mode In 'copy' mode: use vim shortcuts In 'copy' mode: press 'v' to start selection In 'copy' mode: press 'y' to copy selected
- < CTRL b > < p > - paste content of the buffer
- < CTRL b > < c > - create new window
- < CTRL b > < , > - rename window
- < CTRL b > < " > - horizontal split
- < CTRL b > < % > - vertical split