tcsh prompts
1. classic prompt with date and directories
set prompt="\n%B%{\033[34m%}%D.%W.%Y %P\n%{\033[31m%}[%n][%m][%~]> " 11.12.2012 21:00:00 [michalo][gamma][~]> your shell command goes here
2. color prompt with user, machine, time and direcotry
PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] \ && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\") \ [$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo \ '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]] \ \342\224\200[\[\033[0;32m\]\t\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224 \ \342\224\200[\[\033[0;32m\]\w\[\033[0;37m\]] \[\033[0m\]" ┌─[michalo@gamma]─[21:00:00] └─[~]
December 12th, 2012 in
main entries