mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
Fix an issue with escape characters (#7979)
Co-authored-by: Francisco de Zuviría <FranciscodeZuviria@fusap.com.ar>
This commit is contained in:
parent
2c0315dba4
commit
368198b761
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
||||||
# copy the active line from the command line buffer
|
# copy the active line from the command line buffer
|
||||||
# onto the system clipboard (requires clipcopy plugin)
|
# onto the system clipboard
|
||||||
|
|
||||||
copybuffer () {
|
copybuffer () {
|
||||||
if which clipcopy &>/dev/null; then
|
if which clipcopy &>/dev/null; then
|
||||||
echo $BUFFER | clipcopy
|
printf "%s" "$BUFFER" | clipcopy
|
||||||
else
|
else
|
||||||
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
|
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue