shell d for cygwin
Display # or $ depends on whether shell is ran under elevated or regular permission.
SHELL_D=$( id -G | grep -qE '\<(544|0)\>' && echo "#" || echo "\$" )

# Set a default prompt of: user@host and current_directory
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n'"$SHELL_D "
Tag(s): Cygwin bash
Profile picture
斟酌 鵬兄
Wed Jun 05 2019 06:02:26 GMT+0000 (Coordinated Universal Time)
Last modified: Wed Jun 05 2019 06:02:35 GMT+0000 (Coordinated Universal Time)
Comments
No comments here.
Do you even comment?
website: 
Not a valid website
Invalid email format
Please enter your email
*Name: 
Please enter a name
Submit
抱歉,Google Recaptcha 服務被牆掉了,所以不能回覆了