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
5b4e3ee7f1c48505a3ec56ce38e444b88feda7a4
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.4 Page: 89ms Template: 2ms
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