Skip to content

Instantly share code, notes, and snippets.

@Arsfiqball
Created June 24, 2022 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arsfiqball/9c055b42d1a2a75a256f010da79a4f52 to your computer and use it in GitHub Desktop.
Save Arsfiqball/9c055b42d1a2a75a256f010da79a4f52 to your computer and use it in GitHub Desktop.
My ZSH Config

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.

Prerequisite

Config

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

Anything Else

Nothing just restart the terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment