Created
April 4, 2012 12:14
-
-
Save lg0/2300730 to your computer and use it in GitHub Desktop.
modify Terminal Prompt and cloor,enable ls 256 color
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
# 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