Security is more hidden now

This commit is contained in:
Thomas FORGIONE
2016-12-02 09:14:41 +01:00
parent b5fc482077
commit 7916b102fc
2 changed files with 12 additions and 9 deletions

11
zsh/security.zsh Normal file
View File

@@ -0,0 +1,11 @@
# Check if zshrc has been modified
# I like jokes, but I prefer when I'm the one who makes them
git -C $DOTFILES diff --exit-code zshrc zsh > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo >&2 "Your zshrc has been modified... nothing will be executed, please check it"
alias source=:
return
fi