1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-18 03:40:08 +00:00

Remove zsh session restart on omz update and upgrade_oh_my_zsh

This commit is contained in:
Marc Cornellà 2020-08-18 19:51:19 +02:00
parent 7deda85f8c
commit 89400f156a
2 changed files with 0 additions and 6 deletions

View file

@ -208,7 +208,4 @@ function _omz::update {
echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update" echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-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
_omz::log info "restarting the zsh session..."
[[ -z "$SHELL" ]] && exec ${SHELL#-} || exec zsh
} }

View file

@ -18,9 +18,6 @@ function upgrade_oh_my_zsh() {
echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update" echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-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
_omz::log info "restarting the zsh session..."
[[ -z "$SHELL" ]] && exec ${SHELL#-} || exec zsh
} }
function take() { function take() {