Skip to content
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

Support for PowerShell on macOS and Linux #41

Open
TylerLeonhardt opened this issue Apr 18, 2018 · 3 comments
Open

Support for PowerShell on macOS and Linux #41

TylerLeonhardt opened this issue Apr 18, 2018 · 3 comments
Labels

Comments

@TylerLeonhardt
Copy link

As the title implies, it would be awesome if hypercwd supported PowerShell on macOS and Linux 😃

At the moment, nothing happens and the new tab opens to the default directory: ~.

@hharnisc
Copy link
Owner

hharnisc commented May 3, 2018

Hey @tylerl0706 would you be up for submitting a PR for this? Or sharing some details about the dev environment? I personally don't use PowerShell 😄

@TylerLeonhardt
Copy link
Author

I'm going to try to fix this in PowerShell instead :)

Which will allow cd to update the cwd

PowerShell/PowerShell#6824

@TylerLeonhardt
Copy link
Author

TylerLeonhardt commented Apr 21, 2020

So unfortunately we can't fix this via PowerShell, however, if the user adds:

$ExecutionContext.SessionState.InvokeCommand.LocationChangedAction += {
  [Environment]::CurrentDirectory = $pwd.Path
}

to their PowerShell profile, this feature should work. Not sure where you want to document that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants