mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Disable fish_vi_cursor in unsupported TERMs
This commit is contained in:
parent
cac3b239e3
commit
9f6ba5db7a
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
function fish_vi_cursor -d 'Set cursor shape for different vi modes'
|
||||
# Since we read exported variables (KONSOLE_PROFILE_NAME and ITERM_PROFILE)
|
||||
# we need to check harder if we're actually in a supported terminal,
|
||||
# because we might be in a term-in-a-term (emacs ansi-term).
|
||||
if not contains -- $TERM xterm konsole xterm-256color konsole-256color
|
||||
and not set -q TMUX
|
||||
return
|
||||
end
|
||||
set -l terminal $argv[1]
|
||||
set -q terminal[1]
|
||||
or set terminal auto
|
||||
|
|
Loading…
Reference in a new issue