Created
June 23, 2011 07:00
-
-
Save slok/1042062 to your computer and use it in GitHub Desktop.
.bashrc and .bash_profile config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##/home/slok/.bash_profile | |
# Source .bashrc | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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