Logo
Explore Help
Sign In
shell-user/oh-my-zsh
1
0
Fork 0
You've already forked oh-my-zsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-05-11 05:55:17 +00:00
Code Issues Projects Releases Wiki Activity
Files
3e973080037ae68ac25a08545e7cdc60ba128900
oh-my-zsh/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 Page: 807ms Template: 1ms
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