Created
May 12, 2017 22:54
-
-
Save tomprats/cd1e32abaff4f108323a34eea0b56a3a to your computer and use it in GitHub Desktop.
RVM hook for printing out TODOs when switching to a directory
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
#!/usr/bin/env bash | |
for file in ./TODO*; do | |
if [ -f $file ]; then | |
name=$(basename $file) | |
echo "######################### $name "######################### | |
cat $file | |
echo "######################### $name "######################### | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place in
~/.rvm/hooks/after_cd_todo
and thenchmod +x ~/.rvm/hooks/after_cd_todo