mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 09:27:38 +00:00
71992158bf
default_keybindings are left with tabs as it was in the beginning
16 lines
298 B
Fish
16 lines
298 B
Fish
function __fish_cursor_xterm -d 'Set cursor (xterm)'
|
|
set -l shape $argv[1]
|
|
|
|
switch "$shape"
|
|
case block
|
|
set shape 2
|
|
case underscore
|
|
set shape 4
|
|
case line
|
|
set shape 6
|
|
end
|
|
if contains blink $argv
|
|
set shape (expr $shape - 1)
|
|
end
|
|
echo -en "\e[$shape q"
|
|
end
|