mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
parent
a0623e870b
commit
b0716885bc
1 changed files with 13 additions and 1 deletions
|
@ -37,7 +37,7 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
|||
or set -g fish_cursor_unknown block blink
|
||||
|
||||
echo "
|
||||
function fish_vi_cursor_handle --on-variable fish_bind_mode
|
||||
function fish_vi_cursor_handle --on-variable fish_bind_mode --on-event fish_postexec
|
||||
set -l varname fish_cursor_\$fish_bind_mode
|
||||
if not set -q \$varname
|
||||
set varname fish_cursor_unknown
|
||||
|
@ -47,5 +47,17 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
|||
$tmux_postfix
|
||||
end
|
||||
" | source
|
||||
|
||||
echo "
|
||||
function fish_vi_cursor_handle_preexec --on-event fish_preexec
|
||||
set -l varname fish_cursor_default
|
||||
if not set -q \$varname
|
||||
set varname fish_cursor_unknown
|
||||
end
|
||||
$tmux_prefix
|
||||
$function \$\$varname
|
||||
$tmux_postfix
|
||||
end
|
||||
" | source
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue