hharnisc / hypercwd

Opens new tabs with the same directory as the current tab in Hyper
MIT License
385 stars 39 forks source link

Support for PowerShell on macOS and Linux #41

Open TylerLeonhardt opened 6 years ago

TylerLeonhardt commented 6 years ago

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 commented 6 years ago

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 :smile:

TylerLeonhardt commented 6 years ago

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

Which will allow cd to update the cwd

https://github.com/PowerShell/PowerShell/pull/6824

TylerLeonhardt commented 4 years ago

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.