Skip to content

Instantly share code, notes, and snippets.

@slok
Created June 23, 2011 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slok/1042062 to your computer and use it in GitHub Desktop.
Save slok/1042062 to your computer and use it in GitHub Desktop.
.bashrc and .bash_profile config files
##/home/slok/.bash_profile
# Source .bashrc
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#/home/slok/.bashrc
#User prompt with colors in user and host
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[0;0m\]\$ '
#root prompt
#PS1='\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[0;0m\]\$ '
#########################
#user prompt with colors in last character (# and $)
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[01;36m\]\$\[\033[0;0m\] '
#root prompt
#PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[01;31m\]\$\[\033[0;0m\] '
#Alias
alias ls='ls --color'
alias grep='grep -i --color'
#exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment