Skip to content

Instantly share code, notes, and snippets.

View LFabien's full-sized avatar
🎯
Focusing

Fabien LFabien

🎯
Focusing
View GitHub Profile
#!/bin/sh
ORIGINALDIR="$( pwd )"
SCRIPTDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEDIR="$( cd -P $SCRIPTDIR/.. && pwd )"
COLORON='printf "`tput setaf 7`"'
COLORON2='printf "`tput setaf 5`"'
COLORONRED='printf "`tput setaf 1`"'
COLOROFF='printf "`tput sgr0`"'
@LFabien
LFabien / README.md
Last active December 16, 2015 09:59
Git pre-commit hook

Git pre-commit hook

  • Remove whitespaces
  • Find files containing FOCUS()

Copy this file in .git/hooks and make it executable

  • chmod +x .git/hooks/pre-commit