my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
396 B

3 years ago
  1. # copy the active line from the command line buffer
  2. # onto the system clipboard
  3. copybuffer () {
  4. if which clipcopy &>/dev/null; then
  5. printf "%s" "$BUFFER" | clipcopy
  6. else
  7. zle -M "clipcopy not found. Please make sure you have Oh My Zsh installed correctly."
  8. fi
  9. }
  10. zle -N copybuffer
  11. bindkey -M emacs "^O" copybuffer
  12. bindkey -M viins "^O" copybuffer
  13. bindkey -M vicmd "^O" copybuffer