Skip to content
Permalink
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%}> "
RPROMPT='%{%F{red}%}${vcs_info_msg_0_}%{%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/chruby.sh
source /usr/local/share/chruby/auto.sh
# Use Tuomas Kareinen's chnode for managing Node versions
source /usr/local/share/chnode/chnode.sh
source /usr/local/share/chnode/auto.sh
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.