Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by grawity for Bash alias/function to precede every "git diff" with...

Things like command or sudo do not magically apply to the rest of the line. (Only # comments and the time builtin have such magic.) That is, if you use command clear && git diff, it is first...

View Article


Bash alias/function to precede every "git diff" with "clear"

Every time I do git diff I'd like my bash to do clear & git diff instead. I tried to tweak an answer at "Bash: Spaces in alias name" like this: git() { if [[ $@ == "diff" ]]; then command clear...

View Article

Browsing latest articles
Browse All 2 View Live