Skip to content

Instantly share code, notes, and snippets.

@olivoil
Created November 12, 2015 23:26
Show Gist options
  • Save olivoil/fad6f8588f6bbc07a1d0 to your computer and use it in GitHub Desktop.
Save olivoil/fad6f8588f6bbc07a1d0 to your computer and use it in GitHub Desktop.
WorkingOn shell command for fish (place in ~/.config/fish/functions/on.fish)
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