Last active
October 4, 2016 20:19
-
-
Save jmacey/e7d064613c6f9482951889e4c30976bc to your computer and use it in GitHub Desktop.
Sample Defines for adding colours to the bash shell as used in my lectures
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
# more colours here http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
# Add this to your .bashrc and use in the PS2 prompt | |
RED='\e[31m' | |
GREEN='\e[32m' | |
DEFAULT='\e[39m' | |
BLACK='\e[30m' | |
YELLOW='\e[33m' | |
BLUE='\e[34m' | |
MAGENTA='\e[35' | |
CYAN='\e[36m' | |
export PS1=$CYAN'[\u@\h]\W$'$DEFAULT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment