- Add to your
.${SHELL}rc
. - Replace
user
andpassword
. - Create
cat foo | ixio
. - Update
cat foo | ixio abc
. - View your pastes at
ix.io/user/your_username
.
Last active
November 5, 2015 00:58
-
-
Save jhass/1e4e21f427dd008c3a77 to your computer and use it in GitHub Desktop.
ix.io helper function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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