diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-10-08 12:09:20 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-10-08 12:59:10 -0400 |
commit | 49570c8dd03448240897b37b68567352b790f16f (patch) | |
tree | 6c192a52046d5d0dd1b84a838befd8e777cfeafb /tmux | |
parent | 66939c71da756c1d9e07a88a4a8ea2a018650060 (diff) | |
download | conf-49570c8dd03448240897b37b68567352b790f16f.tar.gz conf-49570c8dd03448240897b37b68567352b790f16f.zip |
convert to stow
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/.config/tmux/tmux.conf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf new file mode 100644 index 0000000..a1ea5ec --- /dev/null +++ b/tmux/.config/tmux/tmux.conf @@ -0,0 +1,47 @@ +# bells in any window get sent to the terminal +set -g bell-action any + +# lots of scrollback +set -g history-limit 4096 + +# use ^F rather than ^B for the prefix key +set -g prefix ^F + +# hide the statusbar by default +set -g status off + +# display window titles +set -g set-titles on + +# keep windows in order +set -g renumber-windows on + +# use vi keybindings +setw -g mode-keys vi +set -g status-keys vi + +# colors +setw -g mode-style bg=cyan,fg=black +set -g message-style bg=green,fg=black + +# fast escape +set -g escape-time 50 + +# keybindings +bind f send-prefix +bind ^F run 'tmux choose-tree -Nwf"##{==:##{session_name},#{session_name}}"' +bind ^N new-window +bind ^D detach-client +bind ^[ copy-mode +bind \{ copy-mode +bind Enter run 'tmux capture-pane -pJ | open-link' + +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi ) send-keys -X start-of-line +bind -T copy-mode-vi _ send-keys -X back-to-indentation + +bind -T copy-mode-vi y run "tmux send-keys -X copy-selection-and-cancel; tmux run -b 'tmux-clipboard copy primary'" +bind -T copy-mode-vi ^C run "tmux send-keys -X copy-selection-and-cancel; tmux run -b 'tmux-clipboard copy clipboard'" +bind ^V run "tmux-clipboard paste clipboard" + +unbind ^B |