Skip to content

Instantly share code, notes, and snippets.

@dom111
Last active July 3, 2017 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dom111/0a858821298e73b45df34cf9c3e7f2ca to your computer and use it in GitHub Desktop.
Save dom111/0a858821298e73b45df34cf9c3e7f2ca to your computer and use it in GitHub Desktop.
curl https://gist.githubusercontent.com/dom111/f18f95dfcdff16eae901f69bb49d2f32/raw/932f9549351141965d16dc390b89eb4845f83982/TODO.sh > ~/TODO.sh;
chmod +x ~/TODO.sh;
if [ ! -e ~/TODO ]; then
echo "First TODO item" > ~/TODO;
echo "Second TODO item" >> ~/TODO;
echo "Third TODO item" >> ~/TODO;
fi
if [ -n $PROMPT_COMMAND ]; then
export PROMPT_COMMAND="$PROMPT_COMMAND; ~/TODO.sh";
else
export PROMPT_COMMAND="~/TODO.sh";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment