Skip to content

Instantly share code, notes, and snippets.

@Supernats
Created March 16, 2015 23:53
Show Gist options
  • Select an option

  • Save Supernats/79518e538aba91666972 to your computer and use it in GitHub Desktop.

Select an option

Save Supernats/79518e538aba91666972 to your computer and use it in GitHub Desktop.
setw -g mode-keys vi
bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
set-option -g default-command "reattach-to-user-namespace -l bash"
setw -g aggressive-resize on
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# show battery level
set -g status-right "Batt: #{battery_percentage} | %a %h-%d %H:%M "
# account for binding over l
bind N last-window
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# and use C-h and C-l to cycle thru panes
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# reload
bind-key C-r source-file ~/.tmux.conf
run-shell /Users/nathanseither/tools/tmux/tmux-battery/battery.tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment