aboutsummaryrefslogtreecommitdiff
path: root/shell/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'shell/.bashrc')
-rw-r--r--shell/.bashrc9
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\] '