zimbatm / h

faster shell navigation of projects
MIT License
50 stars 4 forks source link

Proactively show that h is not installed #4

Closed danbst closed 4 years ago

danbst commented 4 years ago

I was desperately running h NixOS without understanding why doesn't it work. It turned out I have to run h without args to get more information:

[danbst@station:~/code]$ h NixOS
/home/danbst/code
Usage: h (<name> | <repo>/<name> | <url>) [git opts]

[danbst@station:~/code]$ h
h is not installed

/home/danbst/code
Usage: eval "$(h --setup [code-root])"
zimbatm commented 4 years ago

Good idea

zimbatm commented 4 years ago

released v1.0.1 with the fix

zimbatm commented 4 years ago

up should probably also receive the same treatment