Commit 1aa2b18e authored by Marc Cornellà's avatar Marc Cornellà
Browse files

feat(CLI): add `--unattended` flag to `omz update` to not reload zsh (#9187)

parent 81bbe86d
...@@ -384,7 +384,7 @@ function _omz::update { ...@@ -384,7 +384,7 @@ function _omz::update {
# Remove update lock if it exists # Remove update lock if it exists
command rm -rf "$ZSH/log/update.lock" command rm -rf "$ZSH/log/update.lock"
# Restart the zsh session # Restart the zsh session
if [[ $ret -eq 0 ]]; then if [[ $ret -eq 0 && "$1" != --unattended ]]; then
# Check whether to run a login shell # Check whether to run a login shell
[[ "$ZSH_ARGZERO" = -* ]] && exec -l "${ZSH_ARGZERO#-}" || exec "$ZSH_ARGZERO" [[ "$ZSH_ARGZERO" = -* ]] && exec -l "${ZSH_ARGZERO#-}" || exec "$ZSH_ARGZERO"
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment