Security more hidden
This commit is contained in:
parent
7916b102fc
commit
dfa05359bc
|
@ -1,8 +1,12 @@
|
|||
# Path to your oh-my-zsh configuration.
|
||||
ZSH=$HOME/.oh-my-zsh
|
||||
ZSH_CUSTOM=$DOTFILES/zsh/oh-my-zsh
|
||||
# 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
|
||||
|
||||
ZSH_THEME="laptop"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo >&2 "Your zshrc has been modified... nothing will be executed, please check it"
|
||||
alias source=:
|
||||
return
|
||||
fi
|
||||
|
||||
# Set to this to use case-sensitive completion
|
||||
# CASE_SENSITIVE="true"
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
# 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
|
||||
|
||||
|
Loading…
Reference in New Issue