Security is more hidden now
This commit is contained in:
parent
b5fc482077
commit
7916b102fc
|
@ -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
|
||||
|
||||
|
10
zshrc
10
zshrc
|
@ -3,21 +3,13 @@
|
|||
# Path to the 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
|
||||
ZSH=$HOME/.oh-my-zsh
|
||||
ZSH_CUSTOM=$HOME/.config/dotfiles/zsh/oh-my-zsh
|
||||
|
||||
ZSH_THEME="laptop"
|
||||
|
||||
source $DOTFILES/zsh/security.zsh
|
||||
source $DOTFILES/zsh/exports.zsh
|
||||
source $DOTFILES/zsh/config.zsh
|
||||
source $DOTFILES/zsh/aliases.zsh
|
||||
|
|
Loading…
Reference in New Issue