Turn extended keys on for tmux
So pi will stop complaining about it and so shift + return will just work
This commit is contained in:
@@ -70,6 +70,9 @@ set -g set-clipboard on
|
|||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
set -g detach-on-destroy off
|
set -g detach-on-destroy off
|
||||||
|
set -g extended-keys on
|
||||||
|
set -g extended-keys-format csi-u
|
||||||
|
set -sg escape-time 10
|
||||||
|
|
||||||
# Status bar
|
# Status bar
|
||||||
set -g status-position top
|
set -g status-position top
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
echo "Enable extended keyboard support in tmux"
|
||||||
|
|
||||||
|
tmux_config="$HOME/.config/tmux/tmux.conf"
|
||||||
|
|
||||||
|
if [[ -f $tmux_config ]] && ! grep -qxF "set -g extended-keys on" "$tmux_config"; then
|
||||||
|
sed -i '/^set -g detach-on-destroy off$/a set -g extended-keys on\nset -g extended-keys-format csi-u\nset -sg escape-time 10' "$tmux_config"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user