summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-12-04 12:34:01 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-12-04 12:34:01 +0100
commit1aa2b18e293db8278a013322e42fd7aaa002a780 (patch)
tree33547a467b6fe6b360fa6591b75ab23ac8d97a84 /lib
parent81bbe86db0fd039c2b781b7466214ffaf19e3ca0 (diff)
downloadzsh-1aa2b18e293db8278a013322e42fd7aaa002a780.tar.gz
zsh-1aa2b18e293db8278a013322e42fd7aaa002a780.tar.bz2
zsh-1aa2b18e293db8278a013322e42fd7aaa002a780.zip
feat(CLI): add `--unattended` flag to `omz update` to not reload zsh (#9187)
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index 253c554c1..38cdc449c 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -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