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:
@@ -40,11 +40,11 @@ local dateshort='--date=format:%F' # year
|
|||||||
local date="$dateshort %T %z" # year time timezone
|
local date="$dateshort %T %z" # year time timezone
|
||||||
|
|
||||||
# Put the commit hash into the clipboard
|
# 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
|
local -A fzf_preview
|
||||||
read -r -d '' <<EOT
|
read -r -d '' <<EOT
|
||||||
out="\$(echo {} | sed -E "$commit_hash")"; [[ -z "\$out" ]] ||
|
out="\$(echo -E {} | sed -E "$commit_hash")"; [[ -z "\$out" ]] ||
|
||||||
EOT
|
EOT
|
||||||
fzf_preview[construct]="$REPLY"
|
fzf_preview[construct]="$REPLY"
|
||||||
read -r -d '' <<EOT
|
read -r -d '' <<EOT
|
||||||
|
|||||||
Reference in New Issue
Block a user