commit ff0be1bcb241a7a1e1ac0b7e39f5dfb56f8ce469
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-06-26T10:58:39Z |
| subject | Forgot tho rebuild |
commit ff0be1bcb241a7a1e1ac0b7e39f5dfb56f8ce469
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-06-26T10:58:39Z
Forgot tho rebuild
---
bash/rbashrc | 27 +++++++++++++++------------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/bash/rbashrc b/bash/rbashrc
index 70619ce..a9c2c2b 100755
--- a/bash/rbashrc
+++ b/bash/rbashrc
@@ -412,19 +412,22 @@ rbash-upgrade() {
# ---- rbash: bash/core/90_prompt.bash ----
-_SHELLD="\$"
-
-case "$OSTYPE" in
- cygwin*)
- if net session >/dev/null 2>&1; then
- _SHELLD="#"
- fi
- ;;
-esac
+__rbash_setup_prompt() {
+ local shelld="\$"
+
+ case "$OSTYPE" in
+ cygwin*)
+ if net session >/dev/null 2>&1; then
+ shelld="#"
+ fi
+ ;;
+ esac
+
+ export PS1="This is ${RHOSTNAME}\e[1;3${RCOLOR}m${RDOMAIN}\e[0m: \w\n$shelld "
+ export EDITOR="${EDITOR:-vim}"
+ export PATH="$RBASH_BIN:$PATH"
+}
-export PS1="This is ${RHOSTNAME}\e[1;3${RCOLOR}m${RDOMAIN}\e[0m: \w\n$_SHELLD "
-export EDITOR="${EDITOR:-vim}"
-export PATH="$RBASH_BIN:$PATH"
# ---- rbash: bash/core/99_main.bash ----