Skip to content

Instantly share code, notes, and snippets.

@hiteshjasani
Last active May 31, 2018 21:34
Show Gist options
  • Save hiteshjasani/ab435902d594572846a4 to your computer and use it in GitHub Desktop.
Save hiteshjasani/ab435902d594572846a4 to your computer and use it in GitHub Desktop.
Tmux conf

Sample commands working with tmux

# start tmux
% tmux new-session -s mysession

# detach from session
`d

# reattach to session
tmux attach -t mysession

# list sessions
tmux list-sessions
# 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