Skip to content

Instantly share code, notes, and snippets.

@jhass jhass/1-README.md
Last active Nov 5, 2015

Embed
What would you like to do?
ix.io helper function
  1. Add to your .${SHELL}rc.
  2. Replace user and password.
  3. Create cat foo | ixio.
  4. Update cat foo | ixio abc.
  5. View your pastes at ix.io/user/your_username.
ixio() {
id=""
if [ -n "$1" ]; then
id="-Fid:1=$1"
fi
url="$(curl --basic -F 'f:1=<-' $id user:password@ix.io)"
echo "$url" | tee >(xclip -selection clipboard)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.