jdp (owner)

Fork Of

Revisions

gist: 143424 Download_button fork
public
Description:
Tweet function for fish shell
Public Clone URL: git://gist.github.com/143424.git
.bashrc
1
2
3
4
5
6
7
8
9
10
11
# $ tweet Hi mom!
#
# Put this in ~/.bashrc or wherever.
# If it doesn't work, make sure your ~/.netrc is right
#
# (Thanks to @anildigital and @grundprinzip for curl-fu)
 
function tweet {
  curl -n -d status="$*" https://twitter.com/statuses/update.xml --insecure &> /dev/null
  echo "tweet'd"
}
.netrc
1
2
3
4
# put this in ~/.netrc
machine twitter.com
login USERNAME
password PASSWORD
config.fish
1
2
3
4
5
6
7
8
9
10
11
12
# $ tweet Hi mom!
#
# Put this in ~/.config/fish/config.fish or wherever.
# If it doesn't work, make sure your ~/.netrc is right
#
# (Thanks to @anildigital and @grundprinzip for curl-fu)
# (Thanks to @defunkt for the original bash function)
 
function tweet
  curl -n -d status="$argv" https://twitter.com/statuses/update.xml --insecure > /dev/null
  echo "tweet'd"
end