Browse Source

Remove zsh session restart on omz update and upgrade_oh_my_zsh

Marc Cornellà 4 years ago
parent
commit
89400f156a
2 changed files with 0 additions and 6 deletions
  1. 0 3
      lib/cli.zsh
  2. 0 3
      lib/functions.zsh

+ 0 - 3
lib/cli.zsh

@@ -208,7 +208,4 @@ function _omz::update {
     echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update"
     # Remove update lock if it exists
     command rm -rf "$ZSH/log/update.lock"
-    # Restart the zsh session
-    _omz::log info "restarting the zsh session..."
-    [[ -z "$SHELL" ]] && exec ${SHELL#-} || exec zsh
 }

+ 0 - 3
lib/functions.zsh

@@ -18,9 +18,6 @@ function upgrade_oh_my_zsh() {
   echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update"
   # Remove update lock if it exists
   command rm -rf "$ZSH/log/update.lock"
-  # Restart the zsh session
-  _omz::log info "restarting the zsh session..."
-  [[ -z "$SHELL" ]] && exec ${SHELL#-} || exec zsh
 }
 
 function take() {