Unix bash aliases
Well, I’m a little bored by, every time I change my system I have to update my aliases. So here it goes some alias that can be really useful. I gonna use this page to save all my aliases.
Both systems .bash_aliases:
[cc_bash escaped=”true”]
alias duh =’du -h -d1′
alias ll =’ls -lA –color’
alias l =’ls -FhsSA1′
alias gpa =’for r in $(git remote); do git push $r master; done’;
[/cc_bash]
Linux .bash_aliases:
[cc_bash escaped=”true”]
alias print =’echo -e’
[/cc_bash]
MacOSX .bash_aliases:
[cc_bash escaped=”true”]
alias print =’echo’
[/cc_bash]
Linux .bash_colors:
[cc_bash escaped=”true”]
RED =’e[1;31m’
CYAN =’e[1;36m’
GREEN =’e[1;32m’
NC =’e[0m’ # No Color
[/cc_bash]
MacOSX .bash_colors:
[cc_bash escaped=”true”]
RED =’x1B[1;31m’
CYAN =’x1B[1;36m’
GREEN =’x1B[1;32m’
NC =’x1B[0m’ # No Color
[/cc_bash]