From 772ef09fc4e91ab0a97a1f90f8ff768d8d0f5500 Mon Sep 17 00:00:00 2001 From: Daniel Lewan Date: Sun, 14 Nov 2021 19:02:29 +0100 Subject: [PATCH] fix SHELL override in kks-grep --- scripts/kks-grep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kks-grep b/scripts/kks-grep index ee9c618..c7667ad 100755 --- a/scripts/kks-grep +++ b/scripts/kks-grep @@ -11,8 +11,8 @@ history_file="$HOME/.cache/kks-grep-history" [ -f "$history_file" ] || touch "$history_file" -SHELL=sh rg --vimgrep '.+' "$@" | - fzf -d ':' --height 100% --prompt 'grep> ' --history="$history_file" \ +rg --vimgrep '.+' "$@" | + SHELL=sh fzf -d ':' --height 100% --prompt 'grep> ' --history="$history_file" \ --preview='range="$(echo {2}-5 | bc | sed "s/^-.*/0/"):$(echo {2}+20 | bc)"; bat -r "$range" -n --color always -H {2} {1}' | awk -F':' '{print $1 " " "+" $2 ":" $3 }' | xargs -r kks edit