mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Handle TERM_PROGRAM_VERSION with junk after the number.
We only care about the major version number. Fixes #5725
This commit is contained in:
parent
c633c06e11
commit
91e70e38e7
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||||
|
|
||||||
# Notify terminals when $PWD changes (issue #906).
|
# Notify terminals when $PWD changes (issue #906).
|
||||||
# VTE based terminals, Terminal.app, and iTerm.app (TODO) support this.
|
# VTE based terminals, Terminal.app, and iTerm.app (TODO) support this.
|
||||||
if test 0"$VTE_VERSION" -ge 3405 -o "$TERM_PROGRAM" = "Apple_Terminal" -a 0"$TERM_PROGRAM_VERSION" -ge 309
|
if test 0"$VTE_VERSION" -ge 3405 -o "$TERM_PROGRAM" = "Apple_Terminal" -a (string match -r '\d+' 0"$TERM_PROGRAM_VERSION") -ge 309
|
||||||
function __update_cwd_osc --on-variable PWD --description 'Notify capable terminals when $PWD changes'
|
function __update_cwd_osc --on-variable PWD --description 'Notify capable terminals when $PWD changes'
|
||||||
if status --is-command-substitution || set -q INSIDE_EMACS
|
if status --is-command-substitution || set -q INSIDE_EMACS
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue