diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-14 03:23:50 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-14 03:23:50 +0530 |
commit | ef65fc573cc459a38d118a10bd37a7ce9cd9c4b3 (patch) | |
tree | 14664c851c5a1bb2ee53296d0903a0b59298d6d8 /.config/shell | |
parent | 4feb945bb31801802704b6ec004f000d052eadf4 (diff) |
better git add fzf alias
Diffstat (limited to '.config/shell')
-rw-r--r-- | .config/shell/aliasrc | 2 |
1 files changed, 1 insertions, 1 deletions
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' \ |