We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d028cca commit 6ec7cfcCopy full SHA for 6ec7cfc
1 file changed
src/plugins/terminal/scripts/init-alpine.sh
@@ -153,7 +153,10 @@ fi
153
154
# Add PS1 only if not already present
155
if ! grep -q 'PS1=' "$PREFIX/alpine/initrc"; then
156
+ # Smart path shortening (fish-style: ~/p/s/components)
157
echo 'PS1="\[\033[1;32m\]\u\[\033[0m\]@localhost \[\033[1;34m\]\$_PS1_PATH\[\033[0m\] \[\$([ \$_PS1_EXIT -ne 0 ] && echo \"\033[31m\")\]\$\[\033[0m\] "' >> "$PREFIX/alpine/initrc"
158
+ # Simple prompt (uncomment below and comment above if you prefer full paths)
159
+ # echo 'PS1="\[\033[1;32m\]\u\[\033[0m\]@localhost \[\033[1;34m\]\w\[\033[0m\] \$ "' >> "$PREFIX/alpine/initrc"
160
fi
161
162
chmod +x "$PREFIX/alpine/initrc"
0 commit comments