__update_cwd_osc: Use $hostname var instead of hostname command

Changing directories should be a few ms faster.
This commit is contained in:
Aaron Gyes 2018-11-13 15:40:19 -08:00
parent eed274ff78
commit 920be02fe9

View file

@ -276,7 +276,7 @@ function __fish_config_interactive -d "Initializations that should be performed
or set -q INSIDE_EMACS
return
end
printf \e\]7\;file://\%s\%s\a (hostname) (string escape --style=url $PWD)
printf \e\]7\;file://\%s\%s\a $hostname (string escape --style=url $PWD)
end
__update_cwd_osc # Run once because we might have already inherited a PWD from an old tab
end