瀏覽代碼

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

tags/original
Bryan Miller 6 年之前
父節點
當前提交
4da8612e19
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +0
    -0
      colors.rc.sh
  2. +3
    -3
      ps1.rc.sh

colors.rc → colors.rc.sh 查看文件


ps1.rc → ps1.rc.sh 查看文件

@@ -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…
取消
儲存