You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate whether $PWD changes are reported to VTE terminals #1814
As mentioned in #906, the claim is that VTE terminals no longer see PWD changes.
The relevant code is in share/functions/__fish_config_interactive.fish:
if test "$VTE_VERSION" -ge 3405
function __update_vte_cwd --on-variable PWD --description 'Notify VTE of change to $PWD'
status --is-command-substitution; and return
printf '\033]7;file://%s\a' (pwd | __fish_urlencode)
end
end
OK, there were some clues in #1816. It doesn't work if you launch fish as a custom command in GNOME Terminal. But it doesn't work if you launch bash as a custom command either.
For anyone looking for a workaround: The problem is that gnome-terminal won't do this if you are running fish as a custom command instead of your shell. To fix make gnome-terminal run your shell instead of custom command (in preferences -> profile -> command) . Then to make gnome-terminal run fish instead of your default shell, you can either make fish your shell (run chsh), or, if you are like me and you have a lot of scripts that assume your shell is bash-like, you can:
Run gnome-terminal with env SHELL=/usr/bin/fish gnome-terminal
Reset SHELL back to bash or whatever in your config.fish: set -gx SHELL /bin/bash
Activity
zanchey commentedon Nov 17, 2014
FWIW, it's working for me on 2.1.1-1100-g9aaf93f under gnome-terminal 3.4.1.1.
strelec commentedon Nov 18, 2014
Gnome-terminal: 3.14.2
Fish 3.1.1
Not only that, I have figured out fish doesn't play well with "open terminal here" in nautilus. Speaking of this package: https://www.archlinux.org/packages/extra/i686/nautilus-open-terminal/
ridiculousfish commentedon Nov 18, 2014
Please open separate issues for separate issues :)
Filed #1816 for the "Open terminal here" In Nautilus
zanchey commentedon Nov 20, 2014
Can I confirm that the behaviour we expect is this?
cd /tmp./tmp.zanchey commentedon Nov 20, 2014
It also works with Gnome-terminal 3.10.2 and Gnome-terminal 3.14 on Fedora 20.
zanchey commentedon Nov 20, 2014
OK, there were some clues in #1816. It doesn't work if you launch fish as a custom command in GNOME Terminal. But it doesn't work if you launch bash as a custom command either.
zanchey commentedon Nov 20, 2014
This is intentional in gnome-terminal:
https://github.com/GNOME/gnome-terminal/blob/371306b334c642fec756fe76449fd5823921dddb/src/terminal-screen.c#L1269
https://git.gnome.org/browse/gnome-terminal/commit/?id=fc68d2735f8804d3c5d0d40635a27989727c3f9b
https://bugzilla.gnome.org/show_bug.cgi?id=706927
I'm going to close this as it's a problem with GNOME Terminal rather than fish.
dvdbng commentedon Nov 24, 2019
For anyone looking for a workaround: The problem is that gnome-terminal won't do this if you are running fish as a custom command instead of your shell. To fix make gnome-terminal run your shell instead of custom command (in preferences -> profile -> command)
. Then to make gnome-terminal run fish instead of your default shell, you can either make fish your shell (run
chsh), or, if you are like me and you have a lot of scripts that assume your shell is bash-like, you can:env SHELL=/usr/bin/fish gnome-terminalSHELLback to bash or whatever in yourconfig.fish:set -gx SHELL /bin/bash