From bf27aaaf84a3a3fb6ea5ec01ff150d96366bff9e Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Wed, 26 Oct 2022 16:42:40 +0200 Subject: [PATCH] Allow arguments to fzgit --- shell/fzf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/fzf b/shell/fzf index 9a090ca..c42db53 100755 --- a/shell/fzf +++ b/shell/fzf @@ -22,7 +22,7 @@ function fzcd() { } function fzgit() { - git log --oneline --decorate --color | fzf --ansi --preview 'git show $(echo {} | cut -d" " -f1)' + git log --oneline --decorate --color "${@}" | fzf --ansi --preview 'git show $(echo {} | cut -d" " -f1)' } # vim: ft=bash