From 9d0568160d41cad688bca94dbd9ab36b30b67618 Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 18 Oct 2024 16:51:20 +0300 Subject: [PATCH] git aliases --- 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 b755430..2450931 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 -0 -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs -r git add" - u = "!git diff --name-only --cached | fzf -0 -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs -r git restore --staged" + a = "!git ls-files --exclude-standard -m --others -t | fzf -1 -0 -m --bind load:last --preview 'git diff --color=always {2}' | cut -d' ' -f2 | xargs -r git add" + u = "!git diff --name-only --cached | fzf -1 -0 -m --bind load:last --preview 'git diff --staged --color=always {1}' | xargs -r git restore --staged" d = diff di = diff ds = diff --staged