From 575d0f399b23ded94283806aa2c33b845c2d6908 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 19 Aug 2022 08:22:46 +0900 Subject: [PATCH] Use tab character instead of | as the delimiter | may appear in the output --- fzf-git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzf-git.sh b/fzf-git.sh index 54c70c7..e11d41c 100644 --- a/fzf-git.sh +++ b/fzf-git.sh @@ -22,7 +22,7 @@ if [[ $# -eq 1 ]]; then branches() { - git branch "$@" --sort=committerdate --sort=HEAD --format='%(HEAD) %(color:yellow)%(refname:short) %(color:green)(%(committerdate:relative))|%(color:blue)%(subject)%(color:reset)' --color=always | column -ts'|' + git branch "$@" --sort=committerdate --sort=HEAD --format=$'%(HEAD) %(color:yellow)%(refname:short) %(color:green)(%(committerdate:relative))\t%(color:blue)%(subject)%(color:reset)' --color=always | column -ts$'\t' } case "$1" in branches)