From 9b0769b2f327772264feb3d27a5af8899ce23a2a Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 22 May 2024 09:35:55 +0300 Subject: [PATCH] ref(git): aliases a and s for stage and unstage files --- home/user/.config/git/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/user/.config/git/config b/home/user/.config/git/config index 391f5e3..1f89c08 100644 --- a/home/user/.config/git/config +++ b/home/user/.config/git/config @@ -44,8 +44,8 @@ submodule = short [alias] - a = "!git ls-files --exclude-standard -m --others -t | fzf -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs git add" - s = "!git diff --name-only --cached | fzf -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs git restore --staged" + a = "!git ls-files --exclude-standard -m --others -t | fzf -0 -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs -r git add" + s = "!git diff --name-only --cached | fzf -0 -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs -r git restore --staged" d = diff di = diff ds = diff --staged