Skip to content

Instantly share code, notes, and snippets.

@lg0
Created April 4, 2012 12:14
Show Gist options
  • Save lg0/2300730 to your computer and use it in GitHub Desktop.
Save lg0/2300730 to your computer and use it in GitHub Desktop.
modify Terminal Prompt and cloor,enable ls 256 color
# copy to ~/.bash_profile
#
# xTerm-256color
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
export LSCOLORS='Exfxcxdxbxegedabagacad'
# Modify Terminal Prompt and Color
case $(id -u) in
0)
STARTCOLOUR='\[\e[1;91m\]';
;;
*)
STARTCOLOUR='\[\e[1;93m\]';
;;
esac
ENDCOLOR="\[\e[0m\]"
UNDERLINEBLUE="\[\e[4;34m\]"
MYWORD="ϟ-HappyHacking:"
PS1="\n$STARTCOLOUR$MYWORD$ENDECOLOR $UNDERLINEBLUE\w$ENDCOLOR\n\$ ";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment