Skip to content

Instantly share code, notes, and snippets.

@jmacey
Last active October 4, 2016 20:19
Show Gist options
  • Save jmacey/e7d064613c6f9482951889e4c30976bc to your computer and use it in GitHub Desktop.
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
# 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