This file contains hidden or 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
| # $ tweet Hi mom! | |
| # | |
| # Put this in ~/.bashrc or wherever. | |
| # If it doesn't work, make sure your ~/.netrc is right | |
| # | |
| # (Thanks to @anildigital for curl-fu) | |
| function tweet { | |
| curl -n -d status="$*" http://twitter.com/statuses/update.xml &> /dev/null | |
| echo "tweet'd" |
This file contains hidden or 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
| # Bash snippet to open new shells in most recently visited dir. | |
| # Useful if you want to open a new terminal tab at the present | |
| # tab's location. | |
| # | |
| # Put this in your .bashrc or whatever. | |
| pathed_cd () { | |
| if [ "$1" == "" ]; then | |
| cd | |
| else |
NewerOlder