Skip to content

Instantly share code, notes, and snippets.

@xoxwgys56
Created December 9, 2022 05:25
Show Gist options
  • Save xoxwgys56/f91bb7072d7178e73475cb2f73912f8f to your computer and use it in GitHub Desktop.
Save xoxwgys56/f91bb7072d7178e73475cb2f73912f8f to your computer and use it in GitHub Desktop.
zsh prompt

zsh prompt

show near by 2 directory only

# prompt
autoload -Uz vcs_info
precmd() { vcs_info }

zstyle ':vcs_info:git:*' formats '%b '

setopt PROMPT_SUBST
PROMPT='%F{#f8f8f2}%*%f %F{#bd93f9}%2~%f%  %F{#ff5555}${vcs_info_msg_0_}%f$ '

prompt detail

# timestamp directory vcs(git)
PROMPT='%F{#f8f8f2}%*%f %F{#bd93f9}%2~%f%  %F{#ff5555}${vcs_info_msg_0_}%f$ '

color scheme

copied from draculatheme

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