aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/zsh/dot_zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/zsh/dot_zshrc')
-rw-r--r--dot_config/zsh/dot_zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc
index db9fa85..f516495 100644
--- a/dot_config/zsh/dot_zshrc
+++ b/dot_config/zsh/dot_zshrc
@@ -274,7 +274,7 @@ copy-last-output() {
zle -M "copy-last-output: previous command produced no output"
return 0
fi
- printf '%s\n' "${lines[start,end]}" | wl-copy
+ print -r -- "${(F)lines[start,end]}" | wl-copy
zle -M "copied $((end - start + 1)) line(s) of last command output"
}
zle -N copy-last-output