Skip to content

Instantly share code, notes, and snippets.

@nunull
Created March 23, 2015 14:41
Show Gist options
  • Save nunull/81bb30b5d59e816ff705 to your computer and use it in GitHub Desktop.
Save nunull/81bb30b5d59e816ff705 to your computer and use it in GitHub Desktop.
bash-clip
# Edit some text in $EDITOR and copy it to the clipboard.
clip() {
$EDITOR ~/.tmp
if [ -e "~/.tmp" ]; then
cat ~/.tmp | pbcopy
rm ~/.tmp
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment