git-open icon indicating copy to clipboard operation
git-open copied to clipboard

Windows cmd installation instructions do not work

Open SteveALee opened this issue 8 years ago • 2 comments

The readme says

Windows with cmd terminal Save the git-open script in any place accessible via your %PATH% environment var.

but that doesn't work. Why would it as the git-open script uses !# which does not work on cmd. It no doubt does work in WSL. Unless git should find it and handle it? I plonked mine in c:\windows\system32, naughty by it should work there AFAIK

However npm I -g git-open installs it just fine.

Sadly though, using nvm-windows loses global installs when you switch versions ;(

SteveALee avatar Dec 09 '17 12:12 SteveALee

If you use nvm you'll need to install it with every version (just the way nvm works really) unless you have a global version. When you install with npm what does the file look like? It'll install it to somewhere in nvm for you, does it alter it in any way? What's the error exactly?

derimagia avatar Feb 04 '18 17:02 derimagia

Setting follow link: https://github.com/paulirish/git-open#windows-powershell which posted below:

function git-open { cmd /c "C:\Program Files\Git\usr\bin\bash.exe" "~/Documents/Scripts/git-open.sh" }
Set-Alias -Name gop -Value git-open

not work, either.

When run gop after setting no response happend.

roachsinai avatar Jan 25 '22 08:01 roachsinai