Check if zshrc has been modified
This commit is contained in:
parent
984903f8c5
commit
84f3aa62c7
9
zshrc
9
zshrc
|
@ -3,6 +3,15 @@
|
||||||
# Path to the dotfiles
|
# Path to the dotfiles
|
||||||
DOTFILES=$HOME/.config/dotfiles
|
DOTFILES=$HOME/.config/dotfiles
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
# Path to your oh-my-zsh configuration
|
# Path to your oh-my-zsh configuration
|
||||||
ZSH=$HOME/.oh-my-zsh
|
ZSH=$HOME/.oh-my-zsh
|
||||||
ZSH_CUSTOM=$HOME/.config/dotfiles/zsh/oh-my-zsh
|
ZSH_CUSTOM=$HOME/.config/dotfiles/zsh/oh-my-zsh
|
||||||
|
|
Loading…
Reference in New Issue