zsh:glog: Disable echo's backslash interpretation

With it allowed it breaks the preview and copy of commits that contains
such sequences.
This commit is contained in:
2021-01-15 13:40:29 +01:00
parent 1cbf572d42
commit 9f616bace6

View File

@@ -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 '' <<EOT
out="\$(echo {} | sed -E "$commit_hash")"; [[ -z "\$out" ]] ||
out="\$(echo -E {} | sed -E "$commit_hash")"; [[ -z "\$out" ]] ||
EOT
fzf_preview[construct]="$REPLY"
read -r -d '' <<EOT