mirror of
https://github.com/notwa/rc
synced 2024-06-26 01:07:11 -07:00
enable tmux history and add nonzero exit command
This commit is contained in:
parent
eaf2cc00e2
commit
9dc69caebd
|
@ -13,7 +13,7 @@ bind C-Space send-prefix
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
|
|
||||||
# need this for ctrl+arrows, etc.
|
# need this for ctrl+arrows, etc.
|
||||||
set-option -g xterm-keys on
|
set -g xterm-keys on
|
||||||
|
|
||||||
# remove delay on escape key
|
# remove delay on escape key
|
||||||
set -sg escape-time 0
|
set -sg escape-time 0
|
||||||
|
@ -41,6 +41,10 @@ set -g history-limit 10000
|
||||||
# increase message time from 750ms
|
# increase message time from 750ms
|
||||||
set -g display-time 2500
|
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
|
# 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
|
# 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
|
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
|
bind b split-window -v
|
||||||
# overrides confirm-before -p "kill-pane #P? (y/n) " kill-pane
|
# overrides confirm-before -p "kill-pane #P? (y/n) " kill-pane
|
||||||
bind x kill-pane
|
bind x kill-pane
|
||||||
|
# doesn't override anything?
|
||||||
|
bind e detach-client -E 'exit 1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user