Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
4b7dba5b
Commit
4b7dba5b
authored
Dec 07, 2020
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(lib)!: soft-deprecate `upgrade_oh_my_zsh` function for everybody
BREAKING CHANGE: the `upgrade_oh_my_zsh` function now calls `omz update` directly.
parent
92fa8153
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
functions.zsh
lib/functions.zsh
+1
-16
No files found.
lib/functions.zsh
View file @
4b7dba5b
...
@@ -9,23 +9,8 @@ function uninstall_oh_my_zsh() {
...
@@ -9,23 +9,8 @@ function uninstall_oh_my_zsh() {
}
}
function
upgrade_oh_my_zsh
()
{
function
upgrade_oh_my_zsh
()
{
if
((
$+
functions[_omz::update]
))
;
then
echo
>
&2
"
${
fg
[yellow]
}
Note:
\`
$0
\`
is deprecated. Use
\`
omz update
\`
instead.
$reset_color
"
echo
>
&2
"
${
fg
[yellow]
}
Note:
\`
$0
\`
is deprecated. Use
\`
omz update
\`
instead.
$reset_color
"
fi
omz update
# Run update script
env
ZSH
=
"
$ZSH
"
zsh
-f
"
$ZSH
/tools/upgrade.sh"
--interactive
local
ret
=
$?
# Update last updated file
zmodload zsh/datetime
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
if
[[
$ret
-eq
0
]]
;
then
# Check whether to run a login shell
[[
"
$ZSH_ARGZERO
"
=
-
*
]]
&&
exec
-l
"
${
ZSH_ARGZERO
#-
}
"
||
exec
"
$ZSH_ARGZERO
"
fi
}
}
function
take
()
{
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