From 9f616bace601e50ccafbd3688f4d57658b14c011 Mon Sep 17 00:00:00 2001 From: druckdev Date: Fri, 15 Jan 2021 13:40:29 +0100 Subject: [PATCH] zsh:glog: Disable echo's backslash interpretation With it allowed it breaks the preview and copy of commits that contains such sequences. --- .config/zsh/autoload/glog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/autoload/glog b/.config/zsh/autoload/glog index 07a5845..890f604 100755 --- a/.config/zsh/autoload/glog +++ b/.config/zsh/autoload/glog @@ -40,11 +40,11 @@ local dateshort='--date=format:%F' # year local date="$dateshort %T %z" # year time timezone # Put the commit hash into the clipboard -local fzf_copy_command="echo -n {} | sed -E '$commit_hash' | xclip -sel c" +local fzf_copy_command="echo -nE {} | sed -E '$commit_hash' | xclip -sel c" local -A fzf_preview read -r -d '' <