Created
March 7, 2022 19:35
-
-
Save MForMarlon/022f17e545be53fa9a157245e64a1ac3 to your computer and use it in GitHub Desktop.
ZSH settings with git completion and a simpler prompt with colors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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