Skip to content

Commit

Permalink
fix: fix shell integration on ubuntu (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Nickerl authored Aug 5, 2021
1 parent fbf4cd0 commit 9c947f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/shell-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ elif [ $shell = 'bash' ]; then
fi
unset {target,dirname,before,insert,after}
}
bind -m vi-command -x '"\200": sodalite-bash'
bind -m vi-command -x '"\201": tput cuu 2; tput ed; READLINE_LINE=$TMP_READLINE_LINE; READLINE_POINT=$TMP_READLINE_POINT; unset {TMP_READLINE_LINE,TMP_READLINE_POINT}'
bind -m vi-command '"f": "\200 dd\C-m \e \201 i"'
bind -m emacs -x '"\200": sodalite-bash'
bind -m emacs -x '"\201": tput cuu 2; tput ed; READLINE_LINE=$TMP_READLINE_LINE; READLINE_POINT=$TMP_READLINE_POINT; unset {TMP_READLINE_LINE,TMP_READLINE_POINT}'
bind -m emacs '"\C-f":"\200 \C-u\C-m \201"'

bind -x '"\e200": sodalite-bash'
bind -x '"\e201": tput cuu 2; tput ed; READLINE_LINE=$TMP_READLINE_LINE; READLINE_POINT=$TMP_READLINE_POINT; unset {TMP_READLINE_LINE,TMP_READLINE_POINT}'
bind -m vi-command '"f": "\e200 dd\C-m \e \e201 i"'
bind -m emacs '"\C-f":"\e200 \C-u\C-m \e201"'

fi

if ! [ "$SODALITE_CD_INTERCEPTION" = 'false' ]; then
Expand Down

0 comments on commit 9c947f9

Please sign in to comment.