2018-11-18 15:35:28 +00:00
|
|
|
|
# Theme
|
|
|
|
|
# Install powerline font
|
|
|
|
|
SPACESHIP_PROMPT_ORDER=(
|
2021-07-13 13:17:09 +00:00
|
|
|
|
user # Username section
|
|
|
|
|
dir # Current directory section
|
|
|
|
|
host # Hostname section
|
|
|
|
|
git # Git section (git_branch + git_status)
|
|
|
|
|
hg # Mercurial section (hg_branch + hg_status)
|
|
|
|
|
exec_time # Execution time
|
|
|
|
|
line_sep # Line break
|
|
|
|
|
vi_mode # Vi-mode indicator
|
|
|
|
|
jobs # Background jobs indicator
|
|
|
|
|
exit_code # Exit code section
|
|
|
|
|
char # Prompt character
|
2018-11-18 15:35:28 +00:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SPACESHIP_PROMPT_ADD_NEWLINE=false
|
|
|
|
|
SPACESHIP_PROMPT_SEPARATE_LINE=false
|
|
|
|
|
SPACESHIP_CHAR_SYMBOL="❯"
|
|
|
|
|
SPACESHIP_CHAR_SUFFIX=" "
|
|
|
|
|
|
|
|
|
|
# Simplify prompt if we're using Hyper
|
|
|
|
|
if [[ "$TERM_PROGRAM" == "Hyper" ]]; then
|
2021-07-13 13:17:09 +00:00
|
|
|
|
SPACESHIP_PROMPT_SEPARATE_LINE=false
|
|
|
|
|
SPACESHIP_DIR_SHOW=false
|
|
|
|
|
SPACESHIP_GIT_BRANCH_SHOW=false
|
2018-11-18 15:35:28 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2021-07-13 13:17:09 +00:00
|
|
|
|
autoload is-at-least
|
|
|
|
|
if is-at-least "5.2" "$ZSH_VERSION"; then
|
2021-12-05 21:42:07 +00:00
|
|
|
|
ZSH_THEME="spaceship"
|
|
|
|
|
if [ ! -d "$ZSH_CUSTOM/themes/${ZSH_THEME}" ]; then
|
|
|
|
|
git clone https://github.com/spaceship-prompt/spaceship-prompt "$ZSH_CUSTOM/themes/${ZSH_THEME}"
|
|
|
|
|
ln -s "${ZSH_CUSTOM}/themes/${ZSH_THEME}/${ZSH_THEME}.zsh-theme" "${ZSH_CUSTOM}/themes/${ZSH_THEME}.zsh-theme"
|
|
|
|
|
fi
|
2020-11-16 08:06:26 +00:00
|
|
|
|
else
|
2021-12-05 21:42:07 +00:00
|
|
|
|
ZSH_THEME="eastwood"
|
2020-11-16 08:06:26 +00:00
|
|
|
|
fi
|
2021-12-05 21:42:07 +00:00
|
|
|
|
|