Shell integration: Set the fish vi mode cursor to blink
This commit is contained in:
parent
d2c20f9548
commit
9813ad04c2
@ -43,14 +43,21 @@ function _ksi_main
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
set -q fish_cursor_insert || set --global fish_cursor_insert "line"
|
|
||||||
_ksi_set_cursor
|
_ksi_set_cursor
|
||||||
|
set -q fish_cursor_default || set --global fish_cursor_default block blink
|
||||||
|
set -q fish_cursor_insert || set --global fish_cursor_insert line blink
|
||||||
|
set -q fish_cursor_replace_one || set --global fish_cursor_replace_one underscore blink
|
||||||
|
set -q fish_cursor_visual || set --global fish_cursor_visual block blink
|
||||||
|
|
||||||
# Change the cursor shape on the first run
|
# Change the cursor shape on the first run
|
||||||
if functions -q _ksi_bar_cursor
|
if functions -q _ksi_bar_cursor
|
||||||
_ksi_bar_cursor
|
_ksi_bar_cursor
|
||||||
|
else if contains "$fish_key_bindings" fish_vi_key_bindings fish_hybrid_key_bindings
|
||||||
|
if functions -q fish_vi_cursor_handle
|
||||||
|
fish_vi_cursor_handle
|
||||||
else if test "$fish_bind_mode" = "insert"
|
else if test "$fish_bind_mode" = "insert"
|
||||||
functions -q fish_vi_cursor_handle && fish_vi_cursor_handle || printf "\e[5 q"
|
printf "\e[5 q"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user