Show admin symbol in cygwin
This commit is contained in:
parent
15e97dcc40
commit
7257ab62bc
12
bash/rbashrc
12
bash/rbashrc
@ -290,7 +290,17 @@ function r2dissource {
|
|||||||
rm -r "$_dis" "$RBASH_SOURCES"
|
rm -r "$_dis" "$RBASH_SOURCES"
|
||||||
}
|
}
|
||||||
|
|
||||||
export PS1="This is ${RHOSTNAME}\e[1;3${RCOLOR}m${RDOMAIN}\e[0m: \w\n\$ "
|
_SHELLD="\$"
|
||||||
|
case $OSTYPE in
|
||||||
|
cygwin)
|
||||||
|
net session > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
_SHELLD="#"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
export PS1="This is ${RHOSTNAME}\e[1;3${RCOLOR}m${RDOMAIN}\e[0m: \w\n$_SHELLD "
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export PATH="$RBASH_BIN:$PATH"
|
export PATH="$RBASH_BIN:$PATH"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user