From 3cb0cc4334fdb5258752c7beab36934eb77fa8b3 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 31 May 2015 08:30:49 -0700 Subject: [PATCH] [split] Move pbcopy plugin to oh-my-fish/plugin-pbcopy https://github.com/oh-my-fish/plugin-pbcopy --- plugins/pbcopy/README.md | 38 -------------------------------------- plugins/pbcopy/pbcopy.fish | 7 ------- 2 files changed, 45 deletions(-) delete mode 100644 plugins/pbcopy/README.md delete mode 100644 plugins/pbcopy/pbcopy.fish diff --git a/plugins/pbcopy/README.md b/plugins/pbcopy/README.md deleted file mode 100644 index 951bec3..0000000 --- a/plugins/pbcopy/README.md +++ /dev/null @@ -1,38 +0,0 @@ -# pbcopy -> OSX's pbcopy and pbpaste for Linux - -pbcopy paste data from the clipboard to STDOUT. -pbpaste paste data from the clipboard. - -## Usage - -Copy a list of files in your home directory to the OS X clipboard: -```fish -$ ls ~ | pbcopy -``` - -Copy the contents of a file to the clipboard: -```fish -$ pbcopy < cookies.txt -``` - -Copy part of a file to the clipboard -```fish -$ grep 'ip address' serverlist.txt | pbcopy -``` - -Paste from your clipboard to stdout -echo `pbpaste` -```fish -$ pbpaste -``` - -Paste from your clipboard to a file -```fish -$ pbpaste > clipboard.txt -``` - -Paste from your clipboard to a file in a remote host -```fish -$ pbpaste | ssh username@host 'cat > ~/myclipboard.txt' -``` \ No newline at end of file diff --git a/plugins/pbcopy/pbcopy.fish b/plugins/pbcopy/pbcopy.fish deleted file mode 100644 index e485991..0000000 --- a/plugins/pbcopy/pbcopy.fish +++ /dev/null @@ -1,7 +0,0 @@ -function pbcopy --description "Copy data from STDIN to the clipboard" - xsel --clipboard --input -end - -function pbpaste --description "Paste data from the Clipboard" - xsel --clipboard --output -end