Tag Archive: Aliases

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:

1
2
3
4
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';

Linux .bash_aliases:

1
alias print ='echo -e'

MacOSX .bash_aliases:

1
alias print ='echo'

Linux .bash_colors:

1
2
3
4
RED   ='e[1;31m'
CYAN  ='e[1;36m'
GREEN ='e[1;32m'
NC    ='e[0m' # No Color

MacOSX .bash_colors:

1
2
3
4
RED   ='x1B[1;31m'
CYAN  ='x1B[1;36m'
GREEN ='x1B[1;32m'
NC    ='x1B[0m' # No Color