3 ms·
Here's another hackish way to do this, probably a bad idea, insert in your profile git() { if [[ $@ == "status" ]]; then echo "NOT TODAY BUB (hint, use gs)
by columbo 14y ago
Here's another hackish way to do this, probably a bad idea, insert in your profile
git() { if [[ $@ == "status" ]]; then echo "NOT TODAY BUB (hint, use gs)"; else command git "$@"; fi; }
alias gs='git status -'
edit: removed ' | more'
- dbaupp 14y agoWhy the piping into more?
- columbo 14y agoHah, that would be because I copied the line from a blog/example somewhere and just replaced a few of the words without really looking at the script.
- hackmiester 14y agoI don't know. I thought it was because if you pipe into "less," it will wait for you to hit 'q' until letting you carry on entering commands. But "more" does not have this behavior.
- xyzzyb 14y agoPassing -F to less causes it to automatically quit if the file can be displayed on one screen.