Last active
June 24, 2017 05:02
-
-
Save purplejacket/d563dbf0b355561967825e5826df0215 to your computer and use it in GitHub Desktop.
Some colorized prompts - PS1 values - ANSI color escape sequences
This file contains hidden or 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
| # skyportal-experiment | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[0;33m\]\u\[\033[1;37m\]@\[\033[0;34m\]\[\e[106m\]skyportal-experiment\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # skyportal-staging | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u\[\033[1;37m\]\[\e[100m\]@\[\033[0;34m\]\[\e[102m\]skyportal-staging\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # skyportal-production | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[0;33m\]\u\[\033[1;37m\]@\[\033[0;34m\]\[\e[106m\]skyportal-experiment\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| # local machine | |
| function prompt { | |
| local BLACK="\[\033[0;30m\]" | |
| local BLACKBOLD="\[\033[1;30m\]" | |
| local RED="\[\033[0;31m\]" | |
| local REDBOLD="\[\033[1;31m\]" | |
| local GREEN="\[\033[0;32m\]" | |
| local GREENBOLD="\[\033[1;32m\]" | |
| local YELLOW="\[\033[0;33m\]" | |
| local YELLOWBOLD="\[\033[1;33m\]" | |
| local BLUE="\[\033[0;34m\]" | |
| local BLUEBOLD="\[\033[1;34m\]" | |
| local PURPLE="\[\033[0;35m\]" | |
| local PURPLEBOLD="\[\033[1;35m\]" | |
| local CYAN="\[\033[0;36m\]" | |
| local CYANBOLD="\[\033[1;36m\]" | |
| local WHITE="\[\033[0;37m\]" | |
| local WHITEBOLD="\[\033[1;37m\]" | |
| local uncolor="\[\033[0m\]" | |
| local g='\[\e[48;5;20m\]' | |
| export PS1="\! $BLUEBOLD\u@$CYANBOLD\h$PURPLEBOLD\w$PURPLE$(__git_ps1)$GREEN\$ " # want to get this to work. | |
| export PS1="$CYAN$g\! $WHITEBOLD\u$YELLOW$g@$CYANBOLD\h$PURPLEBOLD\w $GREEN\$ $uncolor" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment