1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-17 05:33:06 -07:00

enable tmux history and add nonzero exit command

This commit is contained in:
Connor Olding 2021-09-23 06:45:17 -07:00
parent eaf2cc00e2
commit 9dc69caebd

View File

@ -13,7 +13,7 @@ bind C-Space send-prefix
setw -g mode-keys vi
# need this for ctrl+arrows, etc.
set-option -g xterm-keys on
set -g xterm-keys on
# remove delay on escape key
set -sg escape-time 0
@ -41,6 +41,10 @@ set -g history-limit 10000
# increase message time from 750ms
set -g display-time 2500
# remember commands entered in the prompt
set -g history-file ~/.tmux_history
set -g history-limit 1000
# jump into copy-mode for Shift+PgUp, scroll half a page instead of a full page
# switching modes is not ideal but it's the only way to scroll within tmux
bind -n S-PgUp copy-mode \; send-keys -X halfpage-up
@ -83,3 +87,5 @@ bind v split-window -h
bind b split-window -v
# overrides confirm-before -p "kill-pane #P? (y/n) " kill-pane
bind x kill-pane
# doesn't override anything?
bind e detach-client -E 'exit 1'