export CVS_RSH=ssh #PS1='[\u@\h \W]\$ ' #PS1='\[\e[1;33m\]\u\[\e[m\]\[\e[1;37m\].\[\e[m\]\[\e[1;32m\]\h\[\e[m\]\[\e[m\] \[\e[m\]\[\e[1;34m\][\[\e[m\]\[\e[1;31m\]\w\[\e[m\]\[\e[1;34m\]]\[\e[m\] \[\e[1;37m\]$\[\e[m\] ' #PS1='\[\e[1;32m\]\h\[\e[m\]\[\e[m\]\[\e[0;37m\]@\[\e[m\]\[\e[1;33m\]\u\[\e[m\]\[\e[1;37m\]:\[\e[m\] \[\e[m\]\[\e[1;34m\][\[\e[m\]\[\e[1;31m\]\w\[\e[m\]\[\e[1;34m\]]\[\e[m\] \[\e[1;37m\]$\[\e[m\] ' alias ls='ls --color=auto' alias vi='vim' alias aterm='aterm +sb' alias 'pacs'="pacsearch" pacsearch () { echo -e "\\033[1;31m$(perl -e 'print "-" x((`tput cols`-20)/2)') \\033[1;37mOUTPUT STARTS HERE\\033[1;31m $(perl -e 'print "-" x((`tput cols`-20)/2)')" echo -e "$(pacman -Ss $@ | sed 's/^\(.*\)\/\(.*\) \([0-9].*\)/\\033[1;34m\1\\033[1;37m\/\\033[1;33m\2 \\033[1;32m\3\\033[0;37m/')" echo -e "\\033[1;31m$(perl -e 'print "-" x((`tput cols`-18)/2)') \\033[1;37mOUTPUT ENDS HERE\\033[1;31m $(perl -e 'print "-" x((`tput cols`-18)/2)')" } if [ "$TERM" != dumb ] && [ -x /usr/bin/grc ] ; then alias cl='/usr/bin/grc -es --colour=auto' alias configure='cl ./configure' alias diff='cl diff' alias make='cl make' alias gcc='cl gcc' alias g++='cl g++' alias as='cl as' alias gas='cl gas' alias ld='cl ld' alias netstat='cl netstat' alias ping='cl ping' alias traceroute='cl /usr/sbin/traceroute' fi alias 'dn'="dos2unix" alias 'gtodo'="grep -Rh --exclude=*~ --exclude-dir=.* TODO * | sed 's/[\t]*\/\/[ |]*TODO[: ]*//g'" alias grep='grep --color' #$normal will reset the colour to the default, use it to stop using a certain colour (see "prompt parts") normal="\[\e[0m\]" # # # # # # # #BACKGROUNDS # # # # # # # nobg="m\]" blackbg=";40m\]" redbg=";41m\]" greenbg=";42m\]" brownbg=";43m\]" bluebg=";44m\]" purplebg=";45m\]" cyanbg=";46m\]" greybg=";47m\]" # # # # # # # #FOREGROUNDS # # # # # # # black="\[\e[0;30$nobg" redfaint="\[\e[0;31$nobg" greenfaint="\[\e[0;32$nobg" brownfaint="\[\e[0;33$nobg" bluefaint="\[\e[0;34$nobg" purplefaint="\[\e[0;35$nobg" cyanfaint="\[\e[0;36$nobg" greyfaint="\[\e[0;37$nobg" grey="\[\e[1;30$nobg" red="\[\e[1;31$nobg" green="\[\e[1;32$nobg" yellow="\[\e[1;33$nobg" blue="\[\e[1;34$nobg" pink="\[\e[1;35$nobg" cyan="\[\e[1;36$nobg" white="\[\e[1;37$nobg" # # # # # # # #PROMPT PARTS # # # # # # # prompt_opening_brace="$yellow[$normal" prompt_closing_brace="$yellow]$normal" prompt_date="\d" prompt_hostname_short="$blue\h$normal" prompt_hostname_long="\H" prompt_jobs="\j" prompt_terminal="\l" prompt_shellname="\s" prompt_time_24="\t" prompt_time_12="\T" prompt_time_12_am_pm="\@" prompt_username="$green\u$normal" prompt_version="\v" prompt_version_patchlevel="\V" prompt_pwd_long="$red\w$normal" prompt_pwd_short="$red\W$normal" prompt_history_number="\!" prompt_session_number="\#" prompt_usertype_sign="\\$" # # # # # # # # #FINAL PROMPT # # # # # # # # PS1="$prompt_opening_brace$prompt_username@$prompt_hostname_short $prompt_pwd_long$prompt_closing_brace$prompt_usertype_sign "