Logo
Explore Help
Register Sign In
mirrors/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-06-03 22:04:31 +08:00
Code Issues Projects Releases Wiki Activity
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.23.8 Page: 1058ms Template: 10ms
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