summaryrefslogtreecommitdiff
path: root/.config/shell/aliasrc
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-09-14 03:23:50 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-09-14 03:23:50 +0530
commitef65fc573cc459a38d118a10bd37a7ce9cd9c4b3 (patch)
tree14664c851c5a1bb2ee53296d0903a0b59298d6d8 /.config/shell/aliasrc
parent4feb945bb31801802704b6ec004f000d052eadf4 (diff)
better git add fzf alias
Diffstat (limited to '.config/shell/aliasrc')
-rw-r--r--.config/shell/aliasrc2
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' \