Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clippaste () {
- emulate -L zsh
- if [[ $OSTYPE == darwin* ]]
- then
- pbpaste
- elif [[ $OSTYPE == cygwin* ]]
- then
- cat /dev/clipboard
- else
- if (( $+commands[xclip] ))
- then
- xclip -out -selection clipboard
- elif (( $+commands[xsel] ))
- then
- xsel --clipboard --output
- else
- print "clipcopy: Platform $OSTYPE not supported or xclip/xsel not installed" >&2
- return 1
- fi
- fi
- }
Add Comment
Please, Sign In to add comment