Logo
Explore Help
Sign In
gaspersic/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
a33c0cdb46badcc1df9a37da015a82f7f7b0a7e5
ohmyzsh/plugins/copybuffer/copybuffer.plugin.zsh

15 lines
328 B
Bash
Raw Normal View History

Add copybuffer function and keybinding (#5431) * Add copybuffer function and keybinding: binds ctrl-o to copy the command line buffer to the system clipboard. * Add README
2016-09-22 10:41:30 -07:00
# copy the active line from the command line buffer
Fix an issue with escape characters (#7979) Co-authored-by: Francisco de Zuviría <FranciscodeZuviria@fusap.com.ar>
2020-02-28 05:47:06 +08:00
# onto the system clipboard
Add copybuffer function and keybinding (#5431) * Add copybuffer function and keybinding: binds ctrl-o to copy the command line buffer to the system clipboard. * Add README
2016-09-22 10:41:30 -07:00
copybuffer () {
if which clipcopy &>/dev/null; then
Fix an issue with escape characters (#7979) Co-authored-by: Francisco de Zuviría <FranciscodeZuviria@fusap.com.ar>
2020-02-28 05:47:06 +08:00
printf "%s" "$BUFFER" | clipcopy
Add copybuffer function and keybinding (#5431) * Add copybuffer function and keybinding: binds ctrl-o to copy the command line buffer to the system clipboard. * Add README
2016-09-22 10:41:30 -07:00
else
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
fi
}
zle -N copybuffer
bindkey "^O" copybuffer
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 105ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API