Skip to content

Instantly share code, notes, and snippets.

@ilyar
Created April 14, 2012 08:27
Show Gist options
  • Save ilyar/2382887 to your computer and use it in GitHub Desktop.
Save ilyar/2382887 to your computer and use it in GitHub Desktop.
cl_red='\[\033[0;31m\]'
cl_RED='\[\033[1;31m\]'
cl_green='\[\033[0;32m\]'
cl_GREEN='\[\033[1;32m\]'
cl_yellow='\[\033[0;33m\]'
cl_YELLOW='\[\033[1;33m\]'
cl_blue='\[\033[0;34m\]'
cl_BLUE='\[\033[1;34m\]'
cl_purple='\[\033[0;35m\]'
cl_PURPLE='\[\033[1;35m\]'
cl_cyan='\[\033[0;36m\]'
cl_CYAN='\[\033[1;36m\]'
cl_black='\[\033[0;30m\]'
cl_DKGREY='\[\033[1;30m\]'
cl_ltgrey='\[\033[0;37m\]'
cl_WHITE='\[\033[1;37m\]'
cl_NC='\[\033[0m\]'
export PS1="\n${cl_green}[\u@\h] ${cl_yellow}\w${cl_NC}\n"'\$ '
if [ $UID = 0 ]
then export PS1="\n${cl_red}[\u@\h] ${cl_yellow}\w${cl_NC}\n"'\$ '
fi
alias DU="du -ah --max-depth=1"
alias HH="sudo /sbin/shutdown -h now"
alias HR="sudo /sbin/shutdown -r now"
alias LL="ls -alFh --color --group-directories-first"
alias MNT="mount | column -t"
alias PS="ps -auxf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment