more shortcuts for git and ps, and forgot typo

This commit is contained in:
Noah Masur
2020-11-25 12:14:44 -05:00
parent cee1ddbe06
commit 45fb7f7b9a
3 changed files with 22 additions and 5 deletions

View File

@ -15,7 +15,7 @@ function aliases --description 'All aliases'
abbr -a tnn 'tmux new-session -s noah'
# Git
abbr -a gs 'git status -sb'
abbr -a gs 'git status'
abbr -a gd 'git diff'
abbr -a gds 'git diff --staged'
abbr -a ga 'git add'

View File

@ -15,17 +15,17 @@ function gittools
function git-merge-fuzzy
set branch (git-fuzzy-branch "merge from...")
and git merge
and git merge $branch
end
function git-delete-fuzzy
set branch (git-fuzzy-branch "delete branch...")
and git branch -d
and git branch -d $branch
end
function git-force-delete-fuzzy
set branch (git-fuzzy-branch "force delete branch...")
and git branch -D
and git branch -D $branch
end
function git
@ -49,7 +49,11 @@ function gittools
return 1
end
else
command git $argv
if count $argv > /dev/null
command git $argv
else
command git status -sb
end
end
end