Skip to content
GitLab
Menu
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
71769107
Commit
71769107
authored
Aug 30, 2009
by
Robby Russell
Browse files
Adding an installer tool
parent
1092aba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/install.sh
0 → 100644
View file @
71769107
if
[
-d
~/.oh-my-zsh
]
then
echo
"You already have Oh My Zsh installed. You'll need to remove ~/.oh-my-zsh if you want to install"
exit
else
echo
"Cloning Oh My Zsh..."
/usr/bin/env git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
fi
echo
"Looking for an existing zsh config..."
if
[
-f
~/.zshrc
]
then
echo
"Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"
;
cp
~/.zshrc ~/.zshrc.pre-oh-my-zsh
;
rm
~/.zshrc
;
fi
echo
"Symlinking .zshrc to ~/.oh-my-zsh/"
ln
-s
~/.oh-my-zsh/zshrc ~/.zshrc
echo
"Time to change your default shell to zsh!"
chsh
-s
/bin/zsh
echo
"Hooray! Oh My Zsh has been installed."
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