mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Add README and fix dir for copybuffer
This commit is contained in:
parent
6aabcdf876
commit
d509d42895
2 changed files with 15 additions and 1 deletions
14
plugins/copybuffer/README.md
Normal file
14
plugins/copybuffer/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# `copybuffer` plugin
|
||||
|
||||
This plugin adds a keybinding that copies the command line buffer contents to
|
||||
the system clipboard.
|
||||
|
||||
```zsh
|
||||
plugins=(... copybuffer)
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
| Keybinding | Command | Description |
|
||||
|------------|----------------|----------------------------------------------------|
|
||||
| `ctrl-o` | `copybuffer` | Copies the command line buffer to system clipboard |
|
||||
|
|
@ -5,7 +5,7 @@ copybuffer () {
|
|||
if which clipcopy &>/dev/null; then
|
||||
echo $BUFFER | clipcopy
|
||||
else
|
||||
echo "you must install clipcopy to use this keybinding"
|
||||
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue