Skip to content

Commit

Permalink
Add tmux conf
Browse files Browse the repository at this point in the history
  • Loading branch information
hammerdr committed Apr 19, 2022
1 parent dd700b4 commit c04d60d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Remove SSH_AUTH_SOCK to disable tmux automatically resetting the variable
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID \
SSH_CONNECTION WINDOWID XAUTHORITY"

# Use a symlink to look up SSH authentication
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock

# <esc> should be quick for vim to feel right
set -s escape-time 0

# Use "<option-space>" as the prefix; I use <c-b> too frequently in vim
unbind C-b
unbind M-space
set -g prefix C-Space

# Use <prefix><M-r> to reload this config
unbind M-r
bind C-r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

# Use more vim-like keys in copy mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind P paste-buffer

run-shell ~/tmux-resurrect/resurrect.tmux

0 comments on commit c04d60d

Please sign in to comment.