Moved function to aliases where it's being used
This commit is contained in:
parent
b11f40f211
commit
023c122fa7
2 changed files with 5 additions and 4 deletions
5
aliases
5
aliases
|
@ -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
4
zshrc
|
@ -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=""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue