-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use Windows Terminal's Starting Directory #10419
Comments
You'll want to check your config for anything that does If that's not it you should ask the Cygwin people, seeing as you appear to use cygwin. Note that it's also possible it There is nothing special fish does to support a different startup directory, it just asks the operating system via |
I don't have any |
Ask the cygwin people, who know about cygwin. I'm afraid we can't be of more assistance because it's a pretty unusual system and I have no idea how it really fits together. I am fairly certain that it isn't a fish issue. |
It was, I had another hidden config file which overrode the $PWD. No idea how it got there, but totally my fault. Sorry for taking your time with this. |
fish
orfish -C "cd $(cygpath $(pwd))"
as the "Command line" parametercd
to that directory)Is there a special variable I can use within fish config that these terminal emulators add when opening from a folder? Is it a command they issue that doesn't work with fish? When starting fish from powershell using
fish -C "cd $(cygpath $(pwd))
it correctly opens in the directory of the currently open powershell.TL;DR: I'd like to be able to "Open Fish here" using Windows Explorer and Windows Terminal or Alacritty, but can't figure out how to do so.
Ad. 1: Using
set $Env:WIN_CD=$(cygpath $(pwd)); fish -C "cd $WIN_CD"
works within powershell, but when used as a 'Command line' parameter, it generates an error (an issue with Windows Terminal probably):[error 2147942402 (0x80070002) when launching `set $Env:WIN_CD=$(cygpath $(pwd)); fish -C "cd $WIN_CD"']
, i think it can only run an executable and not any arbitrary command (I tired a windows command prompt (cmd.exe) format and it also fails similarly.The text was updated successfully, but these errors were encountered: