Last active
December 17, 2015 22:49
-
-
Save csdy/cad734c9546fdabd1cde to your computer and use it in GitHub Desktop.
Bash Profile (Colors + Fortune)
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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
# Colors | |
PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W\[\033[00m\]\[\e[1;32m\]\$\[\e[m\] ' | |
# Colors | |
if [ $USER = root ]; then | |
PS1='\[\033[1;31m\][\u@\h \W]\$\[\033[0m\] ' | |
else | |
PS1='\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W\[\033[00m\]\[\033[1;32m\]\$\[\033[m\] ' | |
fi | |
# Fortune | |
fortune -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment