Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
368198b7
Unverified
Commit
368198b7
authored
Feb 28, 2020
by
Chai Feng
Committed by
GitHub
Feb 27, 2020
Browse files
Fix an issue with escape characters (#7979)
Co-authored-by:
Francisco de Zuviría
<
FranciscodeZuviria@fusap.com.ar
>
parent
2c0315db
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/copybuffer/copybuffer.plugin.zsh
View file @
368198b7
# 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment