mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 23:21:15 -03:00
OSC 7: also escape hostname
I think gethostname() is not guaranteed to return only URL-safe characters, so better safe than sorry.
This commit is contained in:
@@ -149,7 +149,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
||||
if [ "$TERM" = dumb ]
|
||||
return
|
||||
end
|
||||
printf \e\]7\;file://%s%s\a $host (string escape --style=url -- $PWD)
|
||||
printf \e\]7\;file://%s%s\a (string escape --style=url -- $host $PWD)
|
||||
end
|
||||
end
|
||||
__fish_update_cwd_osc # Run once because we might have already inherited a PWD from an old tab
|
||||
|
||||
Reference in New Issue
Block a user