User:Mattx86/Bash Profile: Difference between revisions
(Created page with "Here's the <code>~/.bash_profile</code> I use: <pre>alias apk='apk --progress' COL_YEL="\[\e[1;33m\]" COL_GRA="\[\e[0;37m\]" COL_WHI="\[\e[1;37m\]" COL_GRE="\[\e[1;32m\]" COL_R...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
Here's the <code>~/.bash_profile</code> I use: | Here's the <code>~/.bash_profile</code> that I use: | ||
<pre>alias apk='apk --progress' | <pre>alias apk='apk --progress' |
Revision as of 21:48, 6 November 2010
Here's the ~/.bash_profile
that I use:
alias apk='apk --progress' COL_YEL="\[\e[1;33m\]" COL_GRA="\[\e[0;37m\]" COL_WHI="\[\e[1;37m\]" COL_GRE="\[\e[1;32m\]" COL_RED="\[\e[1;31m\]" if test "$UID" -eq 0 ; then _COL_USER=$COL_RED _p=" #" else _COL_USER=$COL_GRE _p=">" fi COLORIZED_PROMPT="${_COL_USER}\u${COL_WHI}@${COL_YEL}\h${COL_WHI}:\w${COL_USER}${_p} \[\e[m\]" case $TERM in *term | rxvt ) PS1="${COLORIZED_PROMPT}\[\e]0;\u@\h:\w\007\]" ;; linux ) PS1="${COLORIZED_PROMPT}" ;; * ) PS1="\u@\h:\w${_p} " ;; esac shopt -s checkwinsize