So it's been almost 5 years I use this ZSH theme, and I never share it. So just to let you know. You may try and maybe like it.
- Install ZSH
- Install Oh My ZSH
- Install Spaceship as Oh My ZSH theme
- Install Fira Code
Open ~/.zshrc
and set ZSH_THEME="spaceship"
. Then add these code anywhere above plugins=(git)
:
spaceship_git_email() {
spaceship::is_git || return
local email
email="$(git config user.email)"
if [[ -n $email ]]; then
spaceship::section \
"white" \
"I'm "
spaceship::section \
"green" \
"$email "
fi
}
SPACESHIP_PROMPT_ORDER=(
time
dir
git
git_email
line_sep
char
)
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_TIME_SHOW=true
SPACESHIP_DIR_TRUNC_REPO=false
Nothing just restart the terminal