4 ms·
One thing I miss about Mercurial was only having to type enough of a subcommand to be unambiguous. `hg st` is much shorter than `git status`. I wish all CLI too
by kej 4y ago
One thing I miss about Mercurial was only having to type enough of a subcommand to be unambiguous. `hg st` is much shorter than `git status`. I wish all CLI tools worked that way.
- Panzer04 4y agoHow does that differ from tab autocomplete?
- deadwanderer 4y agoIt's built in to the Mercurial CLI, whereas tab autocomplete is an additional feature to the user's shell. Thus, by default, every user will have access to the Mercurial shortnames, while only users with autocomplete enabled in their shell (or with autocomplete available for their shell) will have the autocomplete available. Also, autocomplete is still an additional keypress...
- quesera 4y ago> I wish all CLI tools worked that way. Agreed, but at least for git, this is easily resolved: # $HOME/.gitconfig [alias] br = branch co = checkout st = status
- mixmastamyk 4y agoNeat, but long ago even that became too much. I use a bunch of alias like this: alias gs='git status' alias gco='git checkout' alias gb='git branch' alias gp='git push' alias gf='git pull' # aka fetch # and many more Interestingly, I ported these from hg aliases almost a decade ago. They were the same but with a leading 'h'.