Created
March 20, 2018 20:33
-
-
Save pop/82a13f52be60de81a09ac0cb5298db26 to your computer and use it in GitHub Desktop.
A script for printing out TODO files automatically.
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
#!/bin/sh | |
# Add this file to a direcotry in your $PATH | |
# Add the following line to your .bashrc: | |
# alias sd='. /path/to/sd.sh' | |
cat_todo() { | |
cat `ls {,.}{todo,TODO}* 2>/dev/null` | |
} | |
if [ $# -eq 1 ]; | |
then | |
echo "cd $1" | |
cd $1 | |
else | |
echo "cd $HOME" | |
cd $HOME | |
fi | |
cat_todo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment