2011-06-01 08:48:26 +02:00
|
|
|
# Load and run colors.
|
|
|
|
autoload -U colors
|
|
|
|
colors -i
|
2009-11-05 20:44:28 +01:00
|
|
|
|
2011-06-01 08:48:26 +02:00
|
|
|
# Set the GNU Screen window number.
|
|
|
|
if [[ -n "$WINDOW" ]]; then
|
|
|
|
SCREEN_NO="%B$WINDOW%b "
|
2009-11-04 20:37:18 +01:00
|
|
|
else
|
2011-06-01 08:48:26 +02:00
|
|
|
SCREEN_NO=""
|
2009-11-04 20:37:18 +01:00
|
|
|
fi
|
|
|
|
|
2011-06-01 08:48:26 +02:00
|
|
|
# Set the default prompt theme.
|
2009-11-04 20:37:18 +01:00
|
|
|
PS1="%n@%m:%~%# "
|
|
|
|
|
2011-06-01 08:48:26 +02:00
|
|
|
# Set the default Git prompt theme.
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix before the branch name.
|
|
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX=")" # Suffix after the branch name.
|
|
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="*" # Indicator to display if the branch is dirty.
|
|
|
|
ZSH_THEME_GIT_PROMPT_CLEAN="" # Indicator to display if the branch is clean.
|
2009-11-04 20:37:18 +01:00
|
|
|
|
2011-06-01 08:48:26 +02:00
|
|
|
# Enable parameter, arithmentic expansion and command substitution in prompt.
|
2009-11-04 20:37:18 +01:00
|
|
|
setopt prompt_subst
|
|
|
|
|