diff options
| author | BardofSprites <[email protected]> | 2026-04-23 00:14:06 -0400 |
|---|---|---|
| committer | BardofSprites <[email protected]> | 2026-04-23 00:14:06 -0400 |
| commit | 5e808bad0986da75a3e32eaa9e7083e6f9515bbe (patch) | |
| tree | 521bc44476f9aa913011e7002a5ddd9f22346171 /shell | |
| parent | 495b93f5603fbee4cc8fc4a6ded85b88adef8562 (diff) | |
correct PS1
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/.bashrc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/shell/.bashrc b/shell/.bashrc index 7c95bb6..0edaae4 100644 --- a/shell/.bashrc +++ b/shell/.bashrc @@ -87,11 +87,18 @@ if ! shopt -oq posix; then fi fi -PROMPT_COMMAND='PS1X=$(p="${PWD#${HOME}}"; [ "${PWD}" != "${p}" ] && printf "~";IFS=/; for q in ${p:1}; do printf /${q:0:1}; done; printf "${q:1}")' +# PROMPT_COMMAND='PS1X=$(p="${PWD#${HOME}}"; [ "${PWD}" != "${p}" ] && printf "~";IFS=/; for q in ${p:1}; do printf /${q:0:1}; done; printf "${q:1}")' +PROMPT_COMMAND='PS1X=$(p="${PWD#${HOME}}"; [ "${PWD}" != "${p}" ] && printf "%s" "~"; IFS=/; for q in ${p:1}; do printf "/%s" "${q:0:1}"; done; printf "%s" "${q:1}")' + +RED='\[\033[1;31m\]' GREEN='\[\033[1;32m\]' +YELLOW='\[\033[1;33m\]' +BLUE='\[\033[1;34m\]' PURPLE='\[\033[1;35m\]' +CYAN='\[\033[1;36m\]' RESET='\[\033[0m\]' +# export PS1="${RED}[\[\033[1;33m\]\u${GREEN}@${BLUE}\h${RESET} ${GREEN}\${PS1X}${RED}] ${PURPLE}λ${RESET} " export PS1="${GREEN}\${PS1X} ${PURPLE}λ${RESET} " # export PS1='\[\e[1m\]\[\e[31m\][\[\e[33m\]\u\[\e[32m\]@\[\e[34m\]\H \[\e[35m\]\w\[\e[31m\]]\[\e[0m\]\[\033[01;35m\] λ\[\033[00m\] ' |
