Last active
May 17, 2016 01:26
-
-
Save james-huang/627c4d3385d0878b492e526bed6fac54 to your computer and use it in GitHub Desktop.
bash behaviour
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
PROMPT_COMMAND='DIR=`pwd|sed -e "s!$HOME!~!"`; if [ ${#DIR} -gt 30 ]; then CurDir=${DIR:0:12}...${DIR:${#DIR}-15}; else CurDir=$DIR; fi' | |
PS1="[\$CurDir] \$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment