From 51c41cb797199a0781eed3e4ece68d8bdde31b89 Mon Sep 17 00:00:00 2001 From: Root THC Date: Fri, 28 Jun 2024 16:04:19 +0100 Subject: [PATCH] hackshell --- tools/hackshell.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/hackshell.sh b/tools/hackshell.sh index 46f96a9..fbe14d3 100755 --- a/tools/hackshell.sh +++ b/tools/hackshell.sh @@ -261,8 +261,11 @@ hs_init_shell() { export PATH=".:${PATH}" # PS1='USERS=$(who | wc -l) LOAD=$(cut -f1 -d" " /proc/loadavg) PS=$(ps -e --no-headers|wc -l) \e[36m\u\e[m@\e[32m\h:\e[33;1m\w \e[0;31m\$\e[m ' - PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ' - # echo -e "${CDM}Change your prompt with ${CDC}"; echo -n " PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ '"; echo -e "${CN}" + if [[ "$SHELL" == *"zsh" ]]; then + PS1='%F{red}%n%f@%F{cyan}%m %F{magenta}%~ %(?.%F{green}.%F{red})%#%f ' + else + PS1='\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ ' + fi } xhelp() {