Created
April 26, 2011 18:51
-
-
Save ahmadvaroqua/942852 to your computer and use it in GitHub Desktop.
TimeStream aliases for bash
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
# Add a new task | |
tsn () | |
{ | |
curl -F "username=yourusername" -F "password=yourpassword" -F "task=$1" http://timestreamapp.com/api/task/add | |
} | |
# Get the current task | |
tsc () | |
{ | |
curl -G -d "username=yourusername" -d "password=yourpassword" http://timestreamapp.com/api/task/current | |
} | |
# Get the current task time | |
tst () | |
{ | |
curl -G -d "username=yourusername" -d "password=yourpassword" http://timestreamapp.com/api/task/current/time | |
} | |
# Adds and commits code but does not push up | |
gc () | |
{ | |
git add . | |
git commit -m "$(tsc)" | |
} | |
# Adds, commits and pushes up code | |
gcp () | |
{ | |
git add . | |
git commit -m "$(tsc)" | |
git push origin master | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment