Skip to content

Commit

Permalink
feat(cwd): customizable
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Apr 21, 2020
1 parent e835368 commit a2eeadf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion porcelain-prompt.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ PORCELAIN_PROMPT_GIT_REF_ON_DIR_LINE=${PORCELAIN_PROMPT_GIT_REF_ON_DIR_LINE:=1}
PORCELAIN_PROMPT_SHOW_TOOL_NAMES=${PORCELAIN_PROMPT_SHOW_TOOL_NAMES:=0}
PORCELAIN_PROMPT_DEFAULT_USER=${PORCELAIN_PROMPT_DEFAULT_USER:=}
PORCELAIN_PROMPT_DEFAULT_HOST=${PORCELAIN_PROMPT_DEFAULT_HOST:=}
PORCELAIN_PROMPT_CWD=${PORCELAIN_PROMPT_CWD:=%2~}

# Configurable colors
PORCELAIN_PROMPT_COLOR_ACTION=${PORCELAIN_PROMPT_COLOR_ACTION:=199}
Expand Down Expand Up @@ -188,7 +189,7 @@ fi
PROMPT+=$'%* '

# cwd
PROMPT+='%F{$PORCELAIN_PROMPT_COLOR_CWD}%2~%f'
PROMPT+='%F{$PORCELAIN_PROMPT_COLOR_CWD}$PORCELAIN_PROMPT_CWD%f'

# ref
PROMPT+='${WHERE:+$WHERE}'
Expand Down

0 comments on commit a2eeadf

Please sign in to comment.