# start tmux
% tmux new-session -s mysession
# detach from session
`d
# reattach to session
tmux attach -t mysession
# list sessions
tmux list-sessions
Last active
May 31, 2018 21:34
-
-
Save hiteshjasani/ab435902d594572846a4 to your computer and use it in GitHub Desktop.
Tmux conf
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
# Save this as ~/.tmux.conf | |
set -g prefix ` | |
unbind C-b | |
bind ` send-prefix | |
set -g status-keys vi | |
setw -g mode-keys vi | |
# rename window, use `, | |
bind-key - swap-window -t -1 | |
bind-key = swap-window -t +1 | |
# resize panes | |
bind j resize-pane -D 10 | |
bind k resize-pane -U 10 | |
bind h resize-pane -L 10 | |
bind l resize-pane -R 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment