bashrc: change git diff

This commit is contained in:
Jaewook Lee
2024-08-14 13:50:08 -04:00
parent bce6400477
commit 6565b441df

View File

@@ -97,10 +97,7 @@ commit() {
} }
git() { git() {
if [[ "$1" == "diff" ]]; then if [[ "$1" == "remote" ]]; then
shift
command git diff --staged "$@"
elif [[ "$1" == "remote" ]]; then
shift shift
command git remote -v "$@" command git remote -v "$@"
elif [[ "$1" == "status" ]]; then elif [[ "$1" == "status" ]]; then