Skip to content

Instantly share code, notes, and snippets.

@MForMarlon
Created March 7, 2022 19:35
Show Gist options
  • Save MForMarlon/022f17e545be53fa9a157245e64a1ac3 to your computer and use it in GitHub Desktop.
Save MForMarlon/022f17e545be53fa9a157245e64a1ac3 to your computer and use it in GitHub Desktop.
ZSH settings with git completion and a simpler prompt with colors
export NODE_ENV=localdev
export PATH=$PATH:~/homebrew/bin:/usr/local/bin
alias ll='ls -al'
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash
fpath=(~/.zsh $fpath)
autoload -Uz compinit && compinit
# Load version control information
autoload -Uz vcs_info
precmd() { vcs_info }
# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats '%F{cyan}(%b)%f'
# Set up the prompt (with git branch name)
setopt PROMPT_SUBST
PROMPT='%B%F{green}%1~%f%b ${vcs_info_msg_0_} %F{yellow}$%f '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment