mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
Add kitty to __update_cwd_osc
This commit is contained in:
parent
f7faf0fcf7
commit
47294f4d29
1 changed files with 2 additions and 1 deletions
|
@ -253,10 +253,11 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
end
|
end
|
||||||
|
|
||||||
# Notify terminals when $PWD changes (issue #906).
|
# Notify terminals when $PWD changes (issue #906).
|
||||||
# VTE based terminals, Terminal.app, iTerm.app (TODO), and foot support this.
|
# VTE based terminals, Terminal.app, iTerm.app (TODO), foot, and kitty support this.
|
||||||
if not set -q FISH_UNIT_TESTS_RUNNING
|
if not set -q FISH_UNIT_TESTS_RUNNING
|
||||||
and begin
|
and begin
|
||||||
string match -q -- 'foot*' $TERM
|
string match -q -- 'foot*' $TERM
|
||||||
|
or string match -q -- 'xterm-kitty*' $TERM
|
||||||
or test 0"$VTE_VERSION" -ge 3405
|
or test 0"$VTE_VERSION" -ge 3405
|
||||||
or test "$TERM_PROGRAM" = Apple_Terminal && test (string match -r '\d+' 0"$TERM_PROGRAM_VERSION") -ge 309
|
or test "$TERM_PROGRAM" = Apple_Terminal && test (string match -r '\d+' 0"$TERM_PROGRAM_VERSION") -ge 309
|
||||||
or test "$TERM_PROGRAM" = WezTerm
|
or test "$TERM_PROGRAM" = WezTerm
|
||||||
|
|
Loading…
Reference in a new issue