Commit 89400f15 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Remove zsh session restart on omz update and upgrade_oh_my_zsh

parent 7deda85f
...@@ -208,7 +208,4 @@ function _omz::update { ...@@ -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
} }
...@@ -18,9 +18,6 @@ function upgrade_oh_my_zsh() { ...@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment