Since I used to set up terminal auto bash in /etc/rc.local file but not work. Like alias, export something. I try setup another file to overwrite some stuff make my work more comfortable.

This time I set some alias and path in /etc/bashrc

That means when I open my terminal(any user), it will auto execute all command from /etc/bashrc.

What I add is that:

alias ls='ls -G'
alias la='ls -a'
alias ll='ls -alG'
alias grep='grep --color=auto'
alias java='java -classpath .'

They are very sample, just make me less typing. OSX use -G instead of –color=auto.

One Response to “Set some Terminal Environment”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>