export PS1="\e[0;35m\!\e[m \e[0;36m\u@\h\e[m \e[0;32m\w \$ \e[m"
\e[0;35m<PS1>\e[
- \e[ Start colour sequence
- x;y Colour
- <PS1> prompt sequence
- \e[m End colour sequence
0;35 = magenta
0;36 = cyan
0;32 = green
\! = history number
\u = user
\h = hostname
\w = full current path
# set xterm title bar
function title()
{
PREFIX=$@;
export PROMPT_COMMAND='echo -ne "\033]0;${PREFIX} [${USER}@${HOSTNAME}: ${PWD/$HOME/~}]\007"'
}
export HISTCONTROL=ignoredups
# set xterm title bar
function title()
{
PREFIX=$@;
export PROMPT_COMMAND='echo -ne "\033]0;${PREFIX} [${USER}@${HOSTNAME}: ${PWD/$HOME/~}]\007"'
}
export HISTCONTROL=ignoredups
# display a tree of current directory and below...
alias tree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
No comments:
Post a Comment