Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-todo.txt-cli
469 B · 18 lines
at main
12345678910111213141516171819#!/usr/bin/env bash
# install todo.txt-cli
cd /tmp_TD_URL=""until [[ -n "${_TD_URL}" ]]; do _TD_URL=$(curl -s https://api.github.com/repos/ginatrapani/todo.txt-cli/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)donewget -qO todo.txt_cli.tar.gz "${_TD_URL}"tar -xzf todo.txt_cli.tar.gzcd todo.txt_cli*chmod a+x todo.sh__USER_BIN="${HOME}/.local/bin"if [ -x "${__USER_BIN}/todo.sh" ]; then cp todo.sh "${__USER_BIN}/todo.sh"fi