Skip to content

Instantly share code, notes, and snippets.

@voutilad
Created January 26, 2016 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voutilad/fd6532bc89cd3f141fd7 to your computer and use it in GitHub Desktop.
Save voutilad/fd6532bc89cd3f141fd7 to your computer and use it in GitHub Desktop.
Laptop Prompt
source ~/.git-prompt.sh
# PS1="\[$GREEN\]\t\[$RED\]-\[$BLUE\]\u\[$YELLOW\]\[$YELLOW\]\w\[\033[m\]\[$MAGENTA\]\$(__git_ps1)\[$WHITE\]\$ "
PS1='\[\e[0;32m\]\u\[\e[m\]@\h \[\e[1;34m\]\W\[\e[m\]\[\e[1;33m\]$(__git_ps1 "(%s)")\[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'
# PS1='[\[$GREEN\]\u@\h \W$(__git_ps1 " (%s)")]\$ '
# PS1="\[\033[0;33m\][\!]\`if [[ \$? = "0" ]]; then echo "\\[\\033[32m\\]"; else echo "\\[\\033[31m\\]"; fi\`[\u.\h: \`if [[ `pwd|wc -c|tr -d " "` > 18 ]]; then echo "\\W"; else echo "\\w"; fi\`]\$\[\033[0m\] "; echo -ne "\033]0;`hostname -s`:`pwd`\007"
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment