Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 980 Bytes
# Use zsh's vcs_info to show git branches in the prompt
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git*' formats "%b"
zstyle ':vcs_info:git*' actionformats "%b|%a"
autoload add-zsh-hook
add-zsh-hook precmd vcs_info
setopt prompt_subst
PROMPT="%{%F{yellow}%}%~%{%f%}> "
# Avoid shelling out to `hub alias` and set up an alias directly
alias git=hub
export CLICOLOR="Yes" EDITOR="vim" FZF_DEFAULT_COMMAND="rg --files --hidden --no-ignore-vcs"
# Use chruby for managing Ruby versions
source /usr/local/share/chruby/
source /usr/local/share/chruby/
# Use Tuomas Kareinen's chnode for managing Node versions
source /usr/local/share/chnode/
source /usr/local/share/chnode/
add-zsh-hook precmd chnode_auto
# Use arrow keys with a partially completed command to search history
bindkey '^[[A' history-beginning-search-backward
bindkey '^[[B' history-beginning-search-forward
You can’t perform that action at this time.