89400f156a6e1d64acaeab9ec265f54cdab91817
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Remove zsh session restart on omz update and upgrade_oh_my_zsh
Diff
1diff --git a/lib/cli.zsh b/lib/cli.zsh
2index d8203f271dd356e42d792e2f6e29d68f97d5830a..c1ae2bdf2b6bbdc545145400b72e9205e5364cf9 100644
3--- a/lib/cli.zsh
4+++ b/lib/cli.zsh
5@@ -208,7 +208,4 @@ function _omz::update {
6 echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update"
7 # Remove update lock if it exists
8 command rm -rf "$ZSH/log/update.lock"
9- # Restart the zsh session
10- _omz::log info "restarting the zsh session..."
11- [[ -z "$SHELL" ]] && exec ${SHELL#-} || exec zsh
12 }
13diff --git a/lib/functions.zsh b/lib/functions.zsh
14index 0556aeb2976c005807b0a3490004c991a3b326f5..4bc533b7ad56719c5f984175286696d8658251dd 100644
15--- a/lib/functions.zsh
16+++ b/lib/functions.zsh
17@@ -18,9 +18,6 @@ function upgrade_oh_my_zsh() {
18 echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update"
19 # Remove update lock if it exists
20 command rm -rf "$ZSH/log/update.lock"
21- # Restart the zsh session
22- _omz::log info "restarting the zsh session..."
23- [[ -z "$SHELL" ]] && exec ${SHELL#-} || exec zsh
24 }
25
26 function take() {