mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Fix VTE version test
This commit is contained in:
parent
6709d1067d
commit
fe10f98038
@ -215,7 +215,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||||||
|
|
||||||
|
|
||||||
# Notify vte-based terminals when $PWD changes (issue #906)
|
# Notify vte-based terminals when $PWD changes (issue #906)
|
||||||
if begin set -q VTE_VERSION; and test $VTE_VERSION -ge 3405; end
|
if test "$VTE_VERSION" -ge 3405
|
||||||
function __update_vte_cwd --on-variable PWD --description 'Notify VTE of change to $PWD'
|
function __update_vte_cwd --on-variable PWD --description 'Notify VTE of change to $PWD'
|
||||||
status --is-command-substitution; and return
|
status --is-command-substitution; and return
|
||||||
printf '\033]7;file://%s\a' (pwd | __fish_urlencode)
|
printf '\033]7;file://%s\a' (pwd | __fish_urlencode)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user