mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: cleanup selfupdate mechanism
This commit is contained in:
parent
72a02e22e0
commit
0bfa411f7a
|
@ -1,10 +1,8 @@
|
||||||
# vim:ft=zsh ts=2 sw=2 sts=2
|
# vim:ft=zsh ts=2 sw=2 sts=2
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
|
||||||
# Check for update, set DISABLE_UPDATE_PROMPT=true to disable the prompt and automatically update
|
# Set DISABLE_DOTFILES_AUTOUPDATE=false to disable updates
|
||||||
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
|
source "${DOTFILES}/check_for_update.zsh"
|
||||||
source "${DOTFILES}/check_for_update.zsh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# theme-related variables
|
# theme-related variables
|
||||||
export ZSH_CUSTOM="$DOTFILES"
|
export ZSH_CUSTOM="$DOTFILES"
|
||||||
|
|
|
@ -37,7 +37,6 @@ function update_dotfiles() {
|
||||||
}
|
}
|
||||||
|
|
||||||
() {
|
() {
|
||||||
|
|
||||||
if [[ -n $DOTFILES_FORCEUPDATE ]]; then
|
if [[ -n $DOTFILES_FORCEUPDATE ]]; then
|
||||||
update_dotfiles;
|
update_dotfiles;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user