Skip to content

Instantly share code, notes, and snippets.

@lunarxlark
Last active June 21, 2022 07:53
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 lunarxlark/cff54630be72307635c89ae68b97a44d to your computer and use it in GitHub Desktop.
Save lunarxlark/cff54630be72307635c89ae68b97a44d to your computer and use it in GitHub Desktop.
可愛いprompt
if [ -e "~/git-completion.bash" ];then
source ~/git-completion.bash
fi
if [ -e "~/git-prompt.sh" ];then
source ~/git-prompt.sh
fi
PS1="\[\e[1;36m\]\u\[\e[0m\]"
PS1+="\[\e[1;31m\]@\[\e[0m\]"
PS1+="\[\e[1;33m\]\h\[\e[0m\] "
PS1+="\W"
PS1+="\[\e[33m\]\$(__git_ps1)\[\e[0m\] "
PS1+="\[\e[36m\][${AWS_PROFILE:-none}]\[\e[0m\] "
PS1+="\[\e[1;31m\][\[\e[0m\]"
PS1+="\d"
PS1+="\[\e[1;31m\]|\[\e[0m\]"
PS1+="\t"
PS1+="\[\e[1;31m\]]\[\e[0m\]"
PS1+="\n"
PS1+="\[\e[1;36m\](*'-')\[\e[0m\] "
PS1+="\[\e[1;31m\]<\[\e[0m\]"
PS1+="\[\e[1;33m\]<\[\e[0m\]"
PS1+="\[\e[1;36m\]<\[\e[0m\] "
echo "test from telescope-github"
@lunarxlark
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment