Bashrc
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 15: | Line 15: | ||
alias nano="nano -wziSA -T 2" | alias nano="nano -wziSA -T 2" | ||
− | + | alias su="sudo su" | |
alias ll="ls -l" | alias ll="ls -l" | ||
alias x="exit" | alias x="exit" | ||
</source> | </source> |
Revision as of 21:00, 8 September 2011
Below is the extended contents of my '.bashrc' file (after the system stuffs)
if [ "$BASH_DEPTH" = "" ]; then BASH_DEPTH=0 else BASH_DEPTH=$((BASH_DEPTH + 1)) fi export BASH_DEPTH export EDITOR="nano" PS1="\[\e[0m\]#\[\e[94m\]#\[\e[34m\]# \[\e]0;\u@\h:\w\007\]\[\e[0;33m\]\T " PS1="$PS1\[\e[32m\]\u\[\e[90m\]@\[\e[35m\]\h\[\e[90m\]:\[\e[36m\[\w \[\e[0m\]" PS1="$PS1[\$BASH_DEPTH:\j] \[\e[34m\]#\[\e[94m\]#\[\e[0m\]#\n\$ " export PS1 alias nano="nano -wziSA -T 2" alias su="sudo su" alias ll="ls -l" alias x="exit"