mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
feat(CLI): add --unattended
flag to omz update
to not reload zsh (#9187)
This commit is contained in:
parent
81bbe86db0
commit
1aa2b18e29
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ function _omz::update {
|
|||
# Remove update lock if it exists
|
||||
command rm -rf "$ZSH/log/update.lock"
|
||||
# Restart the zsh session
|
||||
if [[ $ret -eq 0 ]]; then
|
||||
if [[ $ret -eq 0 && "$1" != --unattended ]]; then
|
||||
# Check whether to run a login shell
|
||||
[[ "$ZSH_ARGZERO" = -* ]] && exec -l "${ZSH_ARGZERO#-}" || exec "$ZSH_ARGZERO"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue