From ef65fc573cc459a38d118a10bd37a7ce9cd9c4b3 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Wed, 14 Sep 2022 03:23:50 +0530 Subject: better git add fzf alias --- .config/shell/aliasrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 7ae5e29..cf9ef41 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -28,7 +28,7 @@ alias \ #awk '{print "$2"}' #cut -d\ -f4 alias \ - g1='git add "$(git status | grep modified: | cut -d'\'' '\'' -f4 | fzf)"' \ + g1='git add "$(git status -s | fzf | cut -b 1-3 --complement)"' \ gr='git restore --staged' \ g2='git commit -S -m' \ g3='git push "$(git remote show | fzf)" HEAD' \ -- cgit v1.2.3