Skip to content

Commit

Permalink
feat: provide wrapper script for git
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Jul 24, 2023
1 parent dea5663 commit 4b163d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zsh/zshrc.shared
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,15 @@ if [[ "$(command -v pyenv)" ]]; then
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi

# git

# you cannot provide alias for git default command but I need to disable commit sub-coomand.
git(){
if [[ "$1" == "commit" ]]; then
echo "commit is not good for me"
return 1
fi
=git "$@"
}

0 comments on commit 4b163d2

Please sign in to comment.