yellow="\e[1;33m"
fi
- fg="$black"
+ fg="$white"
# build the prompt
# logged in as root
if [[ "$USER" == "root" ]]; then
- userStyle="\[$bold$red\]"
+ userStyle="$bold$red"
else
- userStyle="\[$orange\]"
+ userStyle="$orange"
fi
# connected via ssh
if [[ "$SSH_TTY" ]]; then
- hostStyle="\[$bold$red\]"
+ hostStyle="$bold$red"
else
- hostStyle="\[$yellow\]"
+ hostStyle="$yellow"
fi
# Set the terminal title to the current working directory.
PS2="→ "
fi
- export PS1
- export PS2
+ export PS1 PS2
}
# Whenever displaying the prompt, write the previous line to disk
export PROMPT_COMMAND="history -a";
-