Skip to content

Instantly share code, notes, and snippets.

@jeremywrowe
Created March 16, 2014 22:57
Show Gist options
  • Save jeremywrowe/9591081 to your computer and use it in GitHub Desktop.
Save jeremywrowe/9591081 to your computer and use it in GitHub Desktop.
ZSH function to truncate Rails logs
function clogs() {
if [[ -d log ]]; then
echo 'cleaning logs'
: > log/*.log
else
echo 'logs dir not found'
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment