Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
3cb0cc43
Commit
3cb0cc43
authored
May 31, 2015
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[split] Move pbcopy plugin to oh-my-fish/plugin-pbcopy
https://github.com/oh-my-fish/plugin-pbcopy
parent
994ddbf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
45 deletions
+0
-45
plugins/pbcopy/README.md
plugins/pbcopy/README.md
+0
-38
plugins/pbcopy/pbcopy.fish
plugins/pbcopy/pbcopy.fish
+0
-7
No files found.
plugins/pbcopy/README.md
deleted
100644 → 0
View file @
994ddbf8
# 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
plugins/pbcopy/pbcopy.fish
deleted
100644 → 0
View file @
994ddbf8
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment