3

I tried installing the hardhat-shorthand plugin and whenever I try using 'hh' in Git Bash it brings up this instead:

HTML Help

Brian Le
  • 33
  • 3

2 Answers2

3

I've had the same problem. It happens because of a name conflict with the HTML Help program (C:\Windows\hh.exe). One way to fix it is by renaming the hh.exe program, for instance to hh-help.exe.

This is a protected Windows file so you do need to get the required permission to change the name. You can follow this guide in order to change the permission.

mvdkoppel
  • 46
  • 2
  • 1
    Keep in mind that if you do this, hh will work but you won't get autocomplete. This feature only works in bash, zsh and fish. If you are on windows, you can use bash under the Windows Subsystem for Linux. I haven't done that, but it's an easy thing to google. – Franco Victorio Jul 29 '21 at 12:57
1

If you're on Windows, adding npx before the shorthand like this npx hh compile does the trick.

Cheers