[bash] Revert PS1
This commit is contained in:
@@ -29,14 +29,7 @@ RED="\[\e[0;91m\]"
|
|||||||
YELLOW="\e[0;33m"
|
YELLOW="\e[0;33m"
|
||||||
RESET="\[\e[0m\]"
|
RESET="\[\e[0m\]"
|
||||||
|
|
||||||
__git_branch() {
|
PS1="[\u@$RED\h$RESET \w]\$$RESET "
|
||||||
local branch="$(git branch --show-current 2>/dev/null)"
|
|
||||||
if [[ -n "$branch" ]]; then
|
|
||||||
echo " $YELLOW$branch$RESET"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PROMPT_COMMAND='PS1="[\u@$RED\h$RESET \w$(__git_branch)]\$$RESET "'
|
|
||||||
|
|
||||||
# Setup zoxide
|
# Setup zoxide
|
||||||
eval "$(zoxide init --cmd cd bash)"
|
eval "$(zoxide init --cmd cd bash)"
|
||||||
|
|||||||
Reference in New Issue
Block a user