From ff31159cc660e450897dbc092b41a5c3bfc2eef3 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Wed, 25 Nov 2020 15:47:43 -0500 Subject: [PATCH] remove backslash quotes --- bin/git-checkout-fuzzy-2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-checkout-fuzzy-2 b/bin/git-checkout-fuzzy-2 index feb7eee..de8abe6 100755 --- a/bin/git-checkout-fuzzy-2 +++ b/bin/git-checkout-fuzzy-2 @@ -3,7 +3,7 @@ gcb() { result=$(git branch -a --color=always | grep -v '/HEAD\s' | sort | fzf --height 50% --border --ansi --tac --preview-window right:70% \ - --preview 'git log --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1) | head -'$LINES | + --preview 'git log --oneline --graph --date=short --pretty=\"format:%C(auto)%cd %h%d %s\" $(sed s/^..// <<< {} | cut -d\" \" -f1) | head -'$LINES | sed 's/^..//' | cut -d' ' -f1) if [[ $result != "" ]]; then