Browse Source

Changed the file name of the sources (mostly for syntax highlighting in editor). Changed a little of the prompt.

tags/original
Bryan Miller 6 years ago
parent
commit
4da8612e19
2 changed files with 3 additions and 3 deletions
  1. +0
    -0
      colors.rc.sh
  2. +3
    -3
      ps1.rc.sh

colors.rc → colors.rc.sh View File


ps1.rc → ps1.rc.sh View File

@@ -56,16 +56,16 @@ function _git_status() {

set_prompt() {
local lec="$?"
if [ $FORCE_COLOR_PROMPT = yes ]; then
if [ $COLOR_PROMPT = yes ]; then
if [ $lec -ne 0 ]; then
smilie="${RED}:(${NORMAL}"
else
smilie="${GREEN}:)${NORMAL}"
fi
PS1="${debian_chroot:+($debian_chroot)}${GREEN}\u${NORMAL}|${BLUE}\w${NORMAL}|${smilie}|$(_git_status)\$ "
PS1="${debian_chroot:+($debian_chroot)}${BG_PURPLE}${GREEN}\u${NORMAL}${BG_PURPLE}|${BLUE}\w${NORMAL}${BG_PURPLE}|${smilie}${BG_PURPLE}|$(_git_status)${PURPLE}► "
else
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$ "
fi
}

PROMPT_COMMAND="set_prompt"
PROMPT_COMMAND="set_prompt"

Loading…
Cancel
Save