Last active
May 30, 2022 01:28
-
-
Save nownabe/439935d1ebdcb2cf38b811eb3176a3c9 to your computer and use it in GitHub Desktop.
Prettify Cloud Shell Prompt
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
PS1='\n' | |
PS1=$PS1'\[\e[1;33m\]$([[ -n $DEVSHELL_PROJECT_ID ]] && printf "\[\e[1;33m\]$DEVSHELL_PROJECT_ID" || printf "\[\e[1;37m\]cloudshell")\[\e[m\]' | |
PS1=$PS1':' | |
PS1=$PS1'\[\e[1;34m\]\w\n\[\e[1;35m\]❯\[\e[m\] ' | |
PS1=$PS1'\[\033k$([[ -n $DEVSHELL_PROJECT_ID ]] && printf "($DEVSHELL_PROJECT_ID)" || printf "cloudshell")\033\\\]' |
Author
nownabe
commented
May 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment