This program is free software; you can redistribute itand/or modify it under the terms ofthe GNU General Public License as published by the Free Software Foundation; either version2ofthe License, or (at your option) any later version.
This program is distributed inthe hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
TMUX MEMO tmux new -s <session-name> for create a new tmux session. tmux attach -t <session-name> for attach a new tmux session. tmux kill-session -t <session-name> for kill a session. tmux tmux switch -t <session-name> for switching different sessions. tmux rename-session -t 0 <new-name> for renaming the sessions. tmux split-window for spliting windows, -h for left and right. mux select-pane for moving cursor, -UDLR tmux swap-pane -U for swapping the current pane up. tmux swap-pane -D for swapping the current pane down. Ctrl+b % for splitting the window vertically. Ctrl+b " for splitting the window horizontally. Ctrl+b <arrow key> for switching to another pane. Ctrl+b ; for switching to the last pane. Ctrl+b o for switching to the next pane. Ctrl+b { for swapping the current pane with the previous one. Ctrl+b } for swapping the current pane with the next one. Ctrl+b Ctrl+o for moving all panes forward. Ctrl+b Alt+o for moving all panes backward. Ctrl+bx for closing the current pane. Ctrl+b ! for splitting the current pane into a new window. Ctrl+b z for toggling the current pane to fullscreen. Ctrl+b Ctrl+<arrow key> for resizing panes. Ctrl+bq for displaying pane numbers. tmux new-window for creating a new window. tmux new-window -n <window-name> for creating a new window with a specific name. tmux select-window -t <window-number> for switching toa specific window by number. tmux select-window -t <window-name> for switching toa specific window by name. tmux rename-window <new-name> for renaming the current window. Ctrl+b c for creating a new window. Ctrl+bp for switching to the previous window. Ctrl+b n for switching to the next window. Ctrl+b <number> for switching toa specific window by its number. Ctrl+b w for selecting a window froma list. Ctrl+b , for renaming the current window. tmux list-keys for listing all key bindings. tmux list-commands for listing all tmux commands and their parameters. tmux info for listing information about current tmux sessions. tmux source-file ~/.tmux.conf for reloading the current tmux configuration.
# Tmux memo # This funcion shows the basic usage of several tmux commands. TMUXH(){ print_colored red "TMUX MEMO" echo"\033[36mtmux new -s <session-name>\033[0m for create a new tmux session." echo"\033[36mtmux attach -t <session-name>\033[0m for attach a new tmux session." echo"\033[36mtmux kill-session -t <session-name>\033[0m for kill a session." echo"\033[36mtmux tmux switch -t <session-name>\033[0m for switching different sessions." echo"\033[36mtmux rename-session -t 0 <new-name>\033[0m for renaming the sessions." echo"\033[36mtmux split-window\033[0m for spliting windows, -h for left and right." echo"\033[36tmux select-pane\033[0m for moving cursor, -UDLR" echo"\033[36mtmux swap-pane -U\033[0m for swapping the current pane up." echo"\033[36mtmux swap-pane -D\033[0m for swapping the current pane down." echo"\033[36mCtrl+b %\033[0m for splitting the window vertically." echo"\033[36mCtrl+b \"\033[0m for splitting the window horizontally." echo"\033[36mCtrl+b <arrow key>\033[0m for switching to another pane." echo"\033[36mCtrl+b ;\033[0m for switching to the last pane." echo"\033[36mCtrl+b o\033[0m for switching to the next pane." echo"\033[36mCtrl+b {\033[0m for swapping the current pane with the previous one." echo"\033[36mCtrl+b }\033[0m for swapping the current pane with the next one." echo"\033[36mCtrl+b Ctrl+o\033[0m for moving all panes forward." echo"\033[36mCtrl+b Alt+o\033[0m for moving all panes backward." echo"\033[36mCtrl+b x\033[0m for closing the current pane." echo"\033[36mCtrl+b !\033[0m for splitting the current pane into a new window." echo"\033[36mCtrl+b z\033[0m for toggling the current pane to fullscreen." echo"\033[36mCtrl+b Ctrl+<arrow key>\033[0m for resizing panes." echo"\033[36mCtrl+b q\033[0m for displaying pane numbers."
echo"\033[36mtmux new-window\033[0m for creating a new window." echo"\033[36mtmux new-window -n <window-name>\033[0m for creating a new window with a specific name." echo"\033[36mtmux select-window -t <window-number>\033[0m for switching to a specific window by number." echo"\033[36mtmux select-window -t <window-name>\033[0m for switching to a specific window by name." echo"\033[36mtmux rename-window <new-name>\033[0m for renaming the current window." echo"\033[36mCtrl+b c\033[0m for creating a new window." echo"\033[36mCtrl+b p\033[0m for switching to the previous window." echo"\033[36mCtrl+b n\033[0m for switching to the next window." echo"\033[36mCtrl+b <number>\033[0m for switching to a specific window by its number." echo"\033[36mCtrl+b w\033[0m for selecting a window from a list." echo"\033[36mCtrl+b ,\033[0m for renaming the current window."
echo"\033[36mtmux list-keys\033[0m for listing all key bindings." echo"\033[36mtmux list-commands\033[0m for listing all tmux commands and their parameters." echo"\033[36mtmux info\033[0m for listing information about current tmux sessions." echo"\033[36mtmux source-file ~/.tmux.conf\033[0m for reloading the current tmux configuration."