Moved function to aliases where it's being used

This commit is contained in:
Josh Sherman 2017-12-24 16:19:18 -06:00
parent b11f40f211
commit 023c122fa7
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 5 additions and 4 deletions

View file

@ -11,6 +11,11 @@ alias ls='ls --color=auto'
# Colorize output and some exclusions
alias grep="grep --color=auto --exclude-dir={.git,artwork,node_modules,vendor}"
# Git functions
git_branch() {
(command git symbolic-ref -q HEAD || command git name-rev --name-only --no-undefined --always HEAD) 2>/dev/null
}
# Git aliases
alias g='git'
alias ga='git add'

4
zshrc
View file

@ -41,10 +41,6 @@ bindkey -v
bindkey '^a' beginning-of-line
bindkey '^e' end-of-line
git_branch() {
(command git symbolic-ref -q HEAD || command git name-rev --name-only --no-undefined --always HEAD) 2>/dev/null
}
source $DOTFILES/vendor/olivierverdier/zsh-git-prompt/zshrc.sh
ZSH_THEME_GIT_PROMPT_PREFIX=""