hypercwd icon indicating copy to clipboard operation
hypercwd copied to clipboard

Support for PowerShell on macOS and Linux

Open TylerLeonhardt opened this issue 7 years ago • 3 comments

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: ~.

TylerLeonhardt avatar Apr 18 '18 06:04 TylerLeonhardt

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:

hharnisc avatar May 03 '18 15:05 hharnisc

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 avatar May 05 '18 12:05 TylerLeonhardt

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.

TylerLeonhardt avatar Apr 21 '20 19:04 TylerLeonhardt