Skip to content

Commit

Permalink
🔥 Remove --global from git config
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jan 16, 2024
1 parent 2c33cee commit ad16ebe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/main.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ else
(($+commands[less])) || less() {command ls -l $@}
fi

# use pager to process the output of git
(($+commands[git])) && git() {
command git $@ | eval $(command git config --global pager.$1 || echo cat)
command git $@ | eval $(command git config pager.$1 || echo cat)
}

# dictionary $ZINIT cannot be passed
Expand Down

0 comments on commit ad16ebe

Please sign in to comment.