diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-10-30 18:42:57 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-10-30 18:42:57 +0100 |
commit | 2c6410cfd1e892c4730279394cdb9b409ace2a48 (patch) | |
tree | 0b8dae51a9fa79e1104929b16c0c81eae82e4872 /dotfiles/tmux.conf | |
parent | c7bcddf4ea4fc2c6a213bafc916c9f0d0e5e5f99 (diff) |
Add tmux.conf
Diffstat (limited to 'dotfiles/tmux.conf')
-rw-r--r-- | dotfiles/tmux.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf new file mode 100644 index 0000000..a2b2519 --- /dev/null +++ b/dotfiles/tmux.conf @@ -0,0 +1,32 @@ +# set the prefix to C-A +unbind C-b +set -g prefix C-a +bind C-a send-prefix + +set -g default-terminal "tmux-256color" +set -g aggressive-resize on +set -g set-titles on +set -g mode-keys vi + +set -g xterm-keys on + +# -,| do a horizontal/vertical split +unbind-key % +unbind-key '"' +bind - split-window -v -c '#{pane_current_path}' +bind | split-window -h -c '#{pane_current_path}' + +# spawn new shells in the current path +bind c new-window -c '#{pane_current_path}' + +set-option -g history-limit 16384 +set-option -g update-environment "\ + DISPLAY\ + SSH_ASKPASS\ + SSH_AUTH_SOCK\ + SSH_AGENT_PID\ + SSH_CONNECTION\ + WINDOWID\ + XAUTHORITY\ + DBUS_SESSION_BUS_ADDRESS\ +" |