summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2021-10-15 10:14:57 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-10-15 10:15:20 +0200
commit6b1f718edea0e5dcf65a89a96c1d039d1b0f3893 (patch)
tree1fb0d579c9264d3402d5fcd2bfc468d0a6defd28
parentbb67d3075ead8c75d265aaa2aba6c75783369ba2 (diff)
downloaddotfiles-6b1f718edea0e5dcf65a89a96c1d039d1b0f3893.tar.gz
dotfiles-6b1f718edea0e5dcf65a89a96c1d039d1b0f3893.tar.xz
dotfiles-6b1f718edea0e5dcf65a89a96c1d039d1b0f3893.zip
tmate: Some fixes like home and end escaping
-rw-r--r--tmate/.tmate.conf9
1 files changed, 8 insertions, 1 deletions
diff --git a/tmate/.tmate.conf b/tmate/.tmate.conf
index 3b2a09d..88a1438 100644
--- a/tmate/.tmate.conf
+++ b/tmate/.tmate.conf
@@ -46,12 +46,19 @@ set-window-option -g mode-keys vi
#bind -Tcopy-mode-vi y send -X copy-selection
# bind R to get a root shell
-bind R new-window -n 'root' 'sudo -i'
+bind R new-window -n 'root' 'su -l'
# set term to truecolor
set-option -ga terminal-overrides ',*:Tc'
set -g default-terminal "screen-256color"
+# Fix home and end keys
+bind-key -n Home send Escape "OH"
+bind-key -n End send Escape "OF"
+
+# address vim mode switching delay (http://superuser.com/a/252717/65504)
+set -s escape-time 0
+
# get bigger history
set-option -g history-limit 100000