-
-
Save AdamGagorik/bbd45f03cad8442ac95cb5220afdbbe9 to your computer and use it in GitHub Desktop.
Helper function for editing zshrc
This file contains hidden or 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
#!/usr/bin/env bash | |
function zcon() { | |
time_0=`date -r ~/.zshrc` | |
nvim ~/.zshrc | |
time_1=`date -r ~/.zshrc` | |
echo $time_0 | |
echo $time_1 | |
if [ "$time_0" != "$time_1" ]; then | |
echo "changed!" | |
exec zsh | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment