Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
5bd590ce
Commit
5bd590ce
authored
10 years ago
by
Andrew Vit
Browse files
Options
Download
Email Patches
Plain Diff
Reference default install path from ZSH variable
parent
a811ab0b
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/install.sh
+8
-8
tools/install.sh
with
8 additions
and
8 deletions
+8
-8
tools/install.sh
View file @
5bd590ce
ZSH
=
`
/usr/bin/env|grep
'ZSH='
|cut
-d
'='
-f
2
`
if
[
-d
"
$ZSH
"
]
if
[
!
-n
$ZSH
]
then
echo
"
\0
33[0;33mYou already have Oh My Zsh installed.
\0
33[0m You'll need to remove
$ZSH
if you want to install"
exit
elif
[
-d
~/.oh-my-zsh
]
ZSH
=
~/.oh-my-zsh
fi
if
[
-d
$ZSH
]
then
echo
"
\0
33[0;33mYou already have
One
Oh My Zsh
Directory
.
\0
33[0m You'll need to remove
~/.oh-my-zsh
if you want to
clone
"
echo
"
\0
33[0;33mYou already have Oh My Zsh
installed
.
\0
33[0m You'll need to remove
$ZSH
if you want to
install
"
exit
fi
echo
"
\0
33[0;34mCloning Oh My Zsh...
\0
33[0m"
hash
git
>
/dev/null
&&
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git
~/.oh-my-zsh
||
{
hash
git
>
/dev/null
&&
/usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git
$ZSH
||
{
echo
"git not installed"
exit
}
...
...
@@ -23,7 +23,7 @@ then
fi
echo
"
\0
33[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc
\0
33[0m"
cp
~/.oh-my-zsh
/templates/zshrc.zsh-template ~/.zshrc
cp
$ZSH
/templates/zshrc.zsh-template ~/.zshrc
echo
"
\0
33[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.
\0
33[0m"
sed
-i
-e
"/export PATH=/ c
\\
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help