Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
7c947450
Commit
7c947450
authored
Jun 04, 2011
by
vguerci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[upgrade] before init (no reload needed unless oh-my-zsh.sh has been modified)
parent
0c41b1cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
oh-my-zsh.sh
oh-my-zsh.sh
+8
-9
upgrade.sh
tools/upgrade.sh
+0
-1
No files found.
oh-my-zsh.sh
View file @
7c947450
# Check for updates on initial load...
if
[
"
$DISABLE_AUTO_UPDATE
"
=
"true"
]
then
return
else
/usr/bin/env zsh
$ZSH
/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
# Initializes Oh My Zsh
# add a function path
# add a function path
...
@@ -28,7 +36,6 @@ done
...
@@ -28,7 +36,6 @@ done
for
config_file
(
$ZSH
/custom/
*
.zsh
)
source
$config_file
for
config_file
(
$ZSH
/custom/
*
.zsh
)
source
$config_file
# Load the theme
# Load the theme
# Check for updates on initial load...
if
[
"
$ZSH_THEME
"
=
"random"
]
if
[
"
$ZSH_THEME
"
=
"random"
]
then
then
themes
=(
$ZSH
/themes/
*
zsh-theme
)
themes
=(
$ZSH
/themes/
*
zsh-theme
)
...
@@ -41,11 +48,3 @@ else
...
@@ -41,11 +48,3 @@ else
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
fi
fi
# Check for updates on initial load...
if
[
"
$DISABLE_AUTO_UPDATE
"
=
"true"
]
then
return
else
/usr/bin/env zsh
$ZSH
/tools/check_for_upgrade.sh
fi
tools/upgrade.sh
View file @
7c947450
...
@@ -8,6 +8,5 @@ echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m
...
@@ -8,6 +8,5 @@ echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m
echo
"
\0
33[0;32m"
'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
' /____/ '
"
\0
33[0m"
echo
"
\0
33[0;32m"
' /____/ '
"
\0
33[0m"
echo
"
\0
33[0;34mHooray! Oh My Zsh has been updated and/or is at the current version.
\0
33[0m"
echo
"
\0
33[0;34mHooray! Oh My Zsh has been updated and/or is at the current version.
\0
33[0m"
echo
"
\0
33[0;34mAny new updates will be reflected when you start your next terminal session.
\0
33[0m"
echo
"
\0
33[0;34mTo keep up on the latest, be sure to follow Oh My Zsh on twitter:
\0
33[1mhttp://twitter.com/ohmyzsh
\0
33[0m"
echo
"
\0
33[0;34mTo keep up on the latest, be sure to follow Oh My Zsh on twitter:
\0
33[1mhttp://twitter.com/ohmyzsh
\0
33[0m"
cd
$current_path
cd
$current_path
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