]> git.rmz.io Git - dotfiles.git/blob - zsh/tools/install.sh
fix Home/End in urxvt
[dotfiles.git] / zsh / tools / install.sh
1 if [ -d ~/.oh-my-zsh ]
2 then
3 echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove ~/.oh-my-zsh if you want to install"
4 exit
5 fi
6
7 echo "\033[0;34mCloning Oh My Zsh...\033[0m"
8 hash git >/dev/null && /usr/bin/env git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh || {
9 echo "git not installed"
10 exit
11 }
12
13 echo "\033[0;34mLooking for an existing zsh config...\033[0m"
14 if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
15 then
16 echo "\033[0;33mFound ~/.zshrc.\033[0m \033[0;32mBacking up to ~/.zshrc.pre-oh-my-zsh\033[0m";
17 mv ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
18 fi
19
20 echo "\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[0m"
21 cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
22
23 echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
24 echo "export PATH=$PATH" >> ~/.zshrc
25
26 echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
27 chsh -s `which zsh`
28
29 echo "\033[0;32m"' __ __ '"\033[0m"
30 echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"
31 echo "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m"
32 echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m"
33 echo "\033[0;32m"'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '"\033[0m"
34 echo "\033[0;32m"' /____/ '"\033[0m"
35
36 echo "\n\n \033[0;32m....is now installed.\033[0m"
37 /usr/bin/env zsh
38 source ~/.zshrc