bashrc: git remote to be verbose

This commit is contained in:
Jaewook Lee
2024-08-09 22:26:53 +09:00
parent 78802972cf
commit 243b7822b6

View File

@@ -65,6 +65,7 @@ alias status="git status ."
alias push="git push" alias push="git push"
alias pull="git pull" alias pull="git pull"
alias add="git add" alias add="git add"
alias remote="git remote -v"
commit() { commit() {
git commit -m "$*" git commit -m "$*"
@@ -74,6 +75,9 @@ git() {
if [[ "$1" == "diff" ]]; then if [[ "$1" == "diff" ]]; then
shift shift
command git diff --staged "$@" command git diff --staged "$@"
elif [[ "$1" == "remote" ]]; then
shift
command git remote -v "$@"
else else
command git "$@" command git "$@"
fi fi