Skip to content

Instantly share code, notes, and snippets.

@tomprats
Created May 12, 2017 22:54
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 tomprats/cd1e32abaff4f108323a34eea0b56a3a to your computer and use it in GitHub Desktop.
Save tomprats/cd1e32abaff4f108323a34eea0b56a3a to your computer and use it in GitHub Desktop.
RVM hook for printing out TODOs when switching to a directory
#!/usr/bin/env bash
for file in ./TODO*; do
if [ -f $file ]; then
name=$(basename $file)
echo "######################### $name "#########################
cat $file
echo "######################### $name "#########################
fi
done
@tomprats
Copy link
Author

Place in ~/.rvm/hooks/after_cd_todo and then chmod +x ~/.rvm/hooks/after_cd_todo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment