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
5bd590ce
Commit
5bd590ce
authored
Mar 08, 2014
by
Andrew Vit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference default install path from ZSH variable
parent
a811ab0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
install.sh
tools/install.sh
+8
-8
No files found.
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 O
ne 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 O
h 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
\\
...
...
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