diff --git a/.config/zsh/autoload/glog b/.config/zsh/autoload/glog index 6dd3eb3..b0e2a0b 100755 --- a/.config/zsh/autoload/glog +++ b/.config/zsh/autoload/glog @@ -67,7 +67,7 @@ fzf_preview[stat]="$fzf_preview[construct] { $REPLY }" # Put the commit hash into the clipboard # (If no known clipboard tool is available, just print it) -local fzf_copy_command="$fzf_preview[construct] echo \"\$out\"" +local fzf_copy_command="$fzf_preview[construct] echo -n \"\$out\"" if [[ $OSTYPE =~ darwin ]] && command -v pbcopy &>/dev/null; then fzf_copy_command+=" | pbcopy" elif command -v xclip &>/dev/null; then diff --git a/.config/zsh/autoload/gstash b/.config/zsh/autoload/gstash index e77d2b2..0a530a6 100755 --- a/.config/zsh/autoload/gstash +++ b/.config/zsh/autoload/gstash @@ -67,7 +67,7 @@ fzf_preview[stat]="$fzf_preview[construct] { $REPLY }" # Put the commit hash into the clipboard # (If no known clipboard tool is available, just print it) -local fzf_copy_command="$fzf_preview[construct] echo \"\$out\"" +local fzf_copy_command="$fzf_preview[construct] echo -n \"\$out\"" if [[ $OSTYPE =~ darwin ]] && command -v pbcopy &>/dev/null; then fzf_copy_command+=" | pbcopy" elif command -v xclip &>/dev/null; then