diff --git a/home/tmux.conf b/home/tmux.conf index f92cdbd..317f767 100644 --- a/home/tmux.conf +++ b/home/tmux.conf @@ -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'