Created
April 30, 2013 21:42
-
-
Save bbelyeu/5492178 to your computer and use it in GitHub Desktop.
This file contains 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
# Check if .zshrc exists | |
if [ -f "$HOME/.zshrc" ]; then | |
echo ".zshrc exists..." | |
# Check for any .zshrc changes | |
if diff $HOME/.zshrc $BIN_DIR/zshrc > /dev/null; then | |
echo ".zshrc file has not changed. Nothing to do. Booooring." | |
else | |
echo ".zshrc file has changed! Copying to backup..." | |
cp -f $HOME/.zshrc $BIN_DIR/zshrc | |
fi | |
else | |
echo ".zshrc does not exist" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment