Last active
March 19, 2020 13:27
-
-
Save bingo347/8b588beed17ee3c7822bed183357b607 to your computer and use it in GitHub Desktop.
tmux-cheat-sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'tmux new -s <session name>' | |
echo 'tmux attach -t <session name>' | |
echo | |
echo | |
echo 'Ctrl+b - enter command mode' | |
echo | |
echo 'd - detach' | |
echo ', - rename window' | |
echo | |
echo 'TABS:' | |
echo 'c - new tab' | |
echo '0..9 - switch tab' | |
echo 'p - prev tab' | |
echo 'n - next tab' | |
echo 'l - last active tab' | |
echo '& - close tab' | |
echo | |
echo 'PANELS:' | |
echo '% - add panel to the right' | |
echo '" - add panel to the bottom' | |
echo 'arrows - switch panel' | |
echo 'Ctrl+arrows - resize panel' | |
echo 'x - close panel' | |
echo | |
echo 'SELECTION:' | |
echo 'Ctrl+b [ - enter selection mode' | |
echo 'arrows - move cursor' | |
echo 'Ctrl+space - start selection' | |
echo 'Ctrl+w - end selection and copy' | |
echo 'Ctrl+b ] - paste' | |
echo | |
echo 'SCROLL:' | |
echo 'Ctrl+b, PgUp - enter scroll mode' | |
echo 'PgUp - scroll top' | |
echo 'PgDown - scroll down' | |
echo 'q - exit scroll mode' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment