Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
89400f15
Commit
89400f15
authored
Aug 18, 2020
by
Marc Cornellà
Browse files
Remove zsh session restart on omz update and upgrade_oh_my_zsh
parent
7deda85f
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/cli.zsh
View file @
89400f15
...
...
@@ -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
}
lib/functions.zsh
View file @
89400f15
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment