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
613045e7
Commit
613045e7
authored
Aug 17, 2020
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Underline links in install and update script
parent
079e7bb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
install.sh
tools/install.sh
+9
-3
upgrade.sh
tools/upgrade.sh
+5
-3
No files found.
tools/install.sh
View file @
613045e7
...
...
@@ -53,6 +53,10 @@ error() {
echo
${
RED
}
"Error:
$@
"
${
RESET
}
>
&2
}
underline
()
{
echo
"
$(
printf
'\033[4m'
)
$@
$(
printf
'\033[24m'
)
"
}
setup_color
()
{
# Only use colors if connected to a terminal
if
[
-t
1
]
;
then
...
...
@@ -269,11 +273,13 @@ main() {
/____/ ....is now installed!
EOF
cat
<<-
EOF
Before you scream Oh My Zsh! please look over the ~/.zshrc file to select plugins, themes, and options.
• Follow us on Twitter:
https://twitter.com/ohmyzsh
• Join our Discord server:
https://discord.gg/ohmyzsh
• Get stickers, shirts, coffee mugs and other swag:
https://shop.planetargon.com/collections/oh-my-zsh
• Follow us on Twitter:
$(
underline https://twitter.com/ohmyzsh
)
• Join our Discord server:
$(
underline https://discord.gg/ohmyzsh
)
• Get stickers, shirts, coffee mugs and other swag:
$(
underline https://shop.planetargon.com/collections/oh-my-zsh
)
EOF
printf
"
$RESET
"
...
...
tools/upgrade.sh
View file @
613045e7
...
...
@@ -14,6 +14,7 @@ if [ -t 1 ]; then
YELLOW
=
$(
printf
'\033[33m'
)
BLUE
=
$(
printf
'\033[34m'
)
BOLD
=
$(
printf
'\033[1m'
)
UNDER
=
$(
printf
'\033[4m'
)
RESET
=
$(
printf
'\033[m'
)
else
RB_RED
=
""
...
...
@@ -28,6 +29,7 @@ else
GREEN
=
""
YELLOW
=
""
BLUE
=
""
UNDER
=
""
BOLD
=
""
RESET
=
""
fi
...
...
@@ -62,9 +64,9 @@ then
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 %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
"
${
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
"
"Want to get involved in the community? Join our Discord:
https://discord.gg/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
${
UNDER
}
%s
${
RESET
}
\n
"
"To keep up on the latest news and updates, follow us on Twitter:"
"
https://twitter.com/ohmyzsh"
printf
"
${
BLUE
}${
BOLD
}
%s
${
UNDER
}
%s
${
RESET
}
\n
"
"Want to get involved in the community? Join our Discord:"
"
https://discord.gg/ohmyzsh"
printf
"
${
BLUE
}${
BOLD
}
%s
${
UNDER
}
%s
${
RESET
}
\n
"
"Get your Oh My Zsh swag at:"
"
https://shop.planetargon.com/collections/oh-my-zsh"
else
printf
"
${
RED
}
%s
${
RESET
}
\n
"
'There was an error updating. Try again later?'
fi
...
...
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