Skip to content

Instantly share code, notes, and snippets.

@jamie-ga
Last active February 28, 2016 15:59
Show Gist options
  • Save jamie-ga/35ed29c87141ea819081 to your computer and use it in GitHub Desktop.
Save jamie-ga/35ed29c87141ea819081 to your computer and use it in GitHub Desktop.
# .tmux.conf
# set leader to capslock (need to disable capslock functionality first)
set-option -g prefix F10
# allow double click on session to switch
set -g mouse-select-pane on
# allow vi like functionality (key for copy pasting)
set -g mode-keys vi
bind Escape copy-mode
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind m set synchronize-panes off
bind M set synchronize-panes on
# tmux-full
#!/bin/sh
tmux new -d -s "$1"
tmux splitw -h
tmux splitw -h -t 0
tmux splitw -v -t 0
tmux resize-pane -t 2 -R 30
tmux -2 attach-session -d
# tmux-sm
#!/bin/sh
tmux new -d -s "$1"
tmux splitw -h
tmux splitw -v -t 0
tmux resize-pane -t 1 -L 30
tmux -2 attach-session -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment