Created
November 12, 2015 23:26
-
-
Save olivoil/fad6f8588f6bbc07a1d0 to your computer and use it in GitHub Desktop.
WorkingOn shell command for fish (place in ~/.config/fish/functions/on.fish)
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
function prompt_status | |
set_color green; echo "What are you working on?"; set_color normal; echo "> " | |
end | |
function on | |
if begin; test (count $argv) -gt 0; end | |
curl -X POST --data-urlencode "task=$argv" "https://api.workingon.co/hooks/incoming?token={{YOUR_TOKEN}}" >/dev/null 2>&1 | |
else | |
read -l -p prompt_status what | |
on $what | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment