Use xterm-256color-ssh as default keyboard profile.

master
Icedream 2022-06-15 18:46:53 +02:00
parent 0f08a5619f
commit 290bf26297
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 4 additions and 0 deletions

View File

@ -269,6 +269,7 @@ section_end
# keyboard fixes
section "keyboard fixes"
if [ $ZSH_KEYBOARD -gt 0 ]; then
default_keyboard_profile="xterm-256color-ssh"
if [ -z "$SSH_CONNECTION" ]; then
keyboard_profile="$TERM-${${DISPLAY:t}:-$VENDOR-$OSTYPE}"
else
@ -278,6 +279,9 @@ if [ $ZSH_KEYBOARD -gt 0 ]; then
then
log "Loading keyboard profile: $HOME/.zkbd/$keyboard_profile"
. ~/.zkbd/"$keyboard_profile"
else
log "Loading default keyboard profile: $HOME/.zkbd/$default_keyboard_profile"
. ~/.zkbd/"$default_keyboard_profile"
fi
# common assignments