浏览代码

Remove zsh session restart on omz update and upgrade_oh_my_zsh

Marc Cornellà 3 年之前
父节点
当前提交
89400f156a
共有 2 个文件被更改,包括 0 次插入6 次删除
  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() {