Make fish_vi_cursor check $TERM or use argument

Fixes #2475
This commit is contained in:
Matt Steedman 2015-10-10 12:55:04 -04:00 committed by Fabian Homborg
parent 6e3ea5b2ea
commit 35e769d494

View file

@ -9,12 +9,18 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes'
if set -q KONSOLE_PROFILE_NAME
set fcn __fish_cursor_konsole
set uses_echo 1
else if set -q XTERM_LOCALE
else if string match -q "xterm*" -- $TERM
set fcn __fish_cursor_xterm
set uses_echo 1
else
return 1
end
case konsole
set fcn __fish_cursor_konsole
set uses_echo 1
case xterm
set fcn __fish_cursor_xterm
set uses_echo 1
end
set -l tmux_prefix