1 # copy the active line from the command line buffer
2 # onto the system clipboard
5 if which clipcopy &>/dev/null; then
6 printf "%s" "$BUFFER" | clipcopy
8 zle -M "clipcopy not found. Please make sure you have Oh My Zsh installed correctly."
14 bindkey -M emacs "^O" copybuffer
15 bindkey -M viins "^O" copybuffer
16 bindkey -M vicmd "^O" copybuffer