#----------------------------------------------------------------------- #color prompt formatReset='\[\e[0m\]' colorForegroundDefault='\[\e[39m\]' colorForegroundBlack='\[\e[30m\]' colorForegroundRed='\[\e[31m\]' colorForegroundGreen='\[\e[32m\]' colorForegroundYellow='\[\e[33m\]' colorForegroundCyan='\[\e[36m\]' colorForegroundBlue='\[\e[34m\]' colorForegroundLightBlue='\[\e[94m\]' colorForegroundWhite='\[\e[97m\]' colorBackgroundDefault='\[\e[49m\]' colorBackgroundBlack='\[\e[40m\]' colorBackgroundRed='\[\e[41m\]' colorBackgroundGreen='\[\e[42m\]' colorBackgroundYellow='\[\e[43m\]' colorBackgroundBlue='\[\e[44m\]' colorBackgroundWhite='\[\e[107m\]' formatBold='\[\e[1m\]' formatUnderlined='\[\e[4m\]' formatBlink='\[\e[5m\]' formatInvertColors='\[\e[7m\]' formatHidden='\[\e[8m\]' #prompt without changed background color #PS1="${formatBold}${colorForegroundGreen}\u${colorForegroundWhite}@${colorForegroundYellow}\h${formatReset}:${formatBold}${colorForegroundBlue}\w${formatReset}\$ " #prompt with black background color PS1="${colorBackgroundBlack}${formatBold}${colorForegroundGreen}\u${colorForegroundWhite}@${colorForegroundYellow}\h${formatReset}${colorBackgroundBlack}:${formatBold}${colorForegroundCyan}\w${formatReset}\$ " #prompt with white background color #PS1="${colorBackgroundWhite}${formatBold}${colorForegroundBlue}\u${colorForegroundRed}@${colorForegroundBlack}\h${formatReset}${colorBackgroundWhite}:${formatBold}${colorForegroundBlue}\w${formatReset}\$ " #----------------------------------------------------------------------- # several aliases alias ip='ip -c' alias ls='ls --color' alias l='ls -lh' alias ll='ls -lah' # list directories alias lsd='ls -lahd */' alias ..='cd ..' alias ...='cd ..;cd ..' alias du='du -h' alias df='df -h' alias grep='grep --color' alias lsblkl='lsblk -o NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,MODEL,UUID' # list last bash commands alias r='fc -l' # several aliases using possibly not per default installed applications alias dfcl='dfc -dT -t -tmpfs,devtmpfs' #----------------------------------------------------------------------- # useful applications which may not be installed by default # htop, byobu, ncdu, lshw-gtk, wavemon, dfc, arandr, nmon # --------------------------------------------------------------------- # following variables will colourise less output, normally man uses less # see http://unix.stackexchange.com/questions/108699/documentation-on-less-termcap-variables export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green export LESS_TERMCAP_md=$(tput bold; tput setaf 5) #- export LESS_TERMCAP_me=$(tput sgr0) export LESS_TERMCAP_so=$(tput bold; tput setaf 3; tput setab 4) # yellow on blue export LESS_TERMCAP_se=$(tput rmso; tput sgr0) export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 4) # white export LESS_TERMCAP_ue=$(tput rmul; tput sgr0) export LESS_TERMCAP_mr=$(tput rev) export LESS_TERMCAP_mh=$(tput dim) export LESS_TERMCAP_ZN=$(tput ssubm) export LESS_TERMCAP_ZV=$(tput rsubm) export LESS_TERMCAP_ZO=$(tput ssupm) export LESS_TERMCAP_ZW=$(tput rsupm)