Skip to content

Instantly share code, notes, and snippets.

@james-huang
Last active May 17, 2016 01:26
Show Gist options
  • Save james-huang/627c4d3385d0878b492e526bed6fac54 to your computer and use it in GitHub Desktop.
Save james-huang/627c4d3385d0878b492e526bed6fac54 to your computer and use it in GitHub Desktop.
bash behaviour
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