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
29eddb66
Unverified
Commit
29eddb66
authored
May 18, 2020
by
Marc Cornellà
Committed by
GitHub
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: display logo in rainbow colors (#8941)
parent
cbd6fbe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
upgrade.sh
tools/upgrade.sh
+22
-8
No files found.
tools/upgrade.sh
View file @
29eddb66
# Use colors, but only if connected to a terminal, and that terminal
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
# supports them.
if
[
-t
1
]
;
then
if
[
-t
1
]
;
then
RB_RED
=
$(
printf
'\033[38;5;196m'
)
RB_ORANGE
=
$(
printf
'\033[38;5;202m'
)
RB_YELLOW
=
$(
printf
'\033[38;5;226m'
)
RB_GREEN
=
$(
printf
'\033[38;5;082m'
)
RB_BLUE
=
$(
printf
'\033[38;5;021m'
)
RB_INDIGO
=
$(
printf
'\033[38;5;093m'
)
RB_VIOLET
=
$(
printf
'\033[38;5;163m'
)
RED
=
$(
printf
'\033[31m'
)
RED
=
$(
printf
'\033[31m'
)
GREEN
=
$(
printf
'\033[32m'
)
GREEN
=
$(
printf
'\033[32m'
)
YELLOW
=
$(
printf
'\033[33m'
)
YELLOW
=
$(
printf
'\033[33m'
)
...
@@ -9,6 +16,14 @@ if [ -t 1 ]; then
...
@@ -9,6 +16,14 @@ if [ -t 1 ]; then
BOLD
=
$(
printf
'\033[1m'
)
BOLD
=
$(
printf
'\033[1m'
)
RESET
=
$(
printf
'\033[m'
)
RESET
=
$(
printf
'\033[m'
)
else
else
RB_RED
=
""
RB_ORANGE
=
""
RB_YELLOW
=
""
RB_GREEN
=
""
RB_BLUE
=
""
RB_INDIGO
=
""
RB_VIOLET
=
""
RED
=
""
RED
=
""
GREEN
=
""
GREEN
=
""
YELLOW
=
""
YELLOW
=
""
...
@@ -40,13 +55,12 @@ fi
...
@@ -40,13 +55,12 @@ fi
printf
"
${
BLUE
}
%s
${
NORMAL
}
\n
"
"Updating Oh My Zsh"
printf
"
${
BLUE
}
%s
${
NORMAL
}
\n
"
"Updating Oh My Zsh"
if
git pull
--rebase
--stat
origin master
if
git pull
--rebase
--stat
origin master
then
then
printf
'%s'
"
$GREEN
"
printf
'%s %s__ %s %s %s %s %s__ %s\n'
$RB_RED
$RB_ORANGE
$RB_YELLOW
$RB_GREEN
$RB_BLUE
$RB_INDIGO
$RB_VIOLET
$RB_RESET
printf
'%s\n'
' __ __ '
printf
'%s ____ %s/ /_ %s ____ ___ %s__ __ %s ____ %s_____%s/ /_ %s\n'
$RB_RED
$RB_ORANGE
$RB_YELLOW
$RB_GREEN
$RB_BLUE
$RB_INDIGO
$RB_VIOLET
$RB_RESET
printf
'%s\n'
' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
printf
'%s / __ \%s/ __ \ %s / __ `__ \%s/ / / / %s /_ / %s/ ___/%s __ \ %s\n'
$RB_RED
$RB_ORANGE
$RB_YELLOW
$RB_GREEN
$RB_BLUE
$RB_INDIGO
$RB_VIOLET
$RB_RESET
printf
'%s\n'
' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '
printf
'%s/ /_/ /%s / / / %s / / / / / /%s /_/ / %s / /_%s(__ )%s / / / %s\n'
$RB_RED
$RB_ORANGE
$RB_YELLOW
$RB_GREEN
$RB_BLUE
$RB_INDIGO
$RB_VIOLET
$RB_RESET
printf
'%s\n'
'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '
printf
'%s\____/%s_/ /_/ %s /_/ /_/ /_/%s\__, / %s /___/%s____/%s_/ /_/ %s\n'
$RB_RED
$RB_ORANGE
$RB_YELLOW
$RB_GREEN
$RB_BLUE
$RB_INDIGO
$RB_VIOLET
$RB_RESET
printf
'%s\n'
'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '
printf
'%s %s %s %s /____/ %s %s %s %s\n'
$RB_RED
$RB_ORANGE
$RB_YELLOW
$RB_GREEN
$RB_BLUE
$RB_INDIGO
$RB_VIOLET
$RB_RESET
printf
'%s\n'
' /____/ '
printf
"
${
BLUE
}
%s
\n
"
"Hooray! Oh My Zsh has been updated and/or is at the current version."
printf
"
${
BLUE
}
%s
\n
"
"Hooray! Oh My Zsh has been updated and/or is at the current version."
printf
"
${
BLUE
}${
BOLD
}
%s
${
RESET
}
\n
"
"To keep up on the latest news and updates, follow us on twitter: https://twitter.com/ohmyzsh"
printf
"
${
BLUE
}${
BOLD
}
%s
${
RESET
}
\n
"
"To keep up on the latest news and updates, follow us on twitter: https://twitter.com/ohmyzsh"
printf
"
${
BLUE
}${
BOLD
}
%s
${
RESET
}
\n
"
"Get your Oh My Zsh swag at: https://shop.planetargon.com/collections/oh-my-zsh"
printf
"
${
BLUE
}${
BOLD
}
%s
${
RESET
}
\n
"
"Get your Oh My Zsh swag at: https://shop.planetargon.com/collections/oh-my-zsh"
...
...
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