Add README and fix dir for copybuffer

This commit is contained in:
Brad Urani 2016-09-21 17:02:11 -07:00
commit d509d42895
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,14 @@
# copy the active line from the command line buffer
# onto the system clipboard (requires clipcopy plugin)
copybuffer () {
if which clipcopy &>/dev/null; then
echo $BUFFER | clipcopy
else
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
fi
}
zle -N copybuffer
bindkey "^O" copybuffer