forked from mdouchement/dotfiles-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zsh_installer.sh
executable file
·69 lines (55 loc) · 1.17 KB
/
zsh_installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pause() {
echo 'Push ENTER to continue'
read
}
echo 'Install zsh on your machine'
echo ' Ubuntu: apt-get install zsh'
echo
echo 'Install Oh My Zsh plugins'
echo 'Look this link for install: https://github.com/robbyrussell/oh-my-zsh'
pause
echo 'Create symbolic links for zshrc, profile & theme (git + rbenv)'
if [ ! -f ~/.zshrc ]
then
ln -s $DIR/.zshrc ~/.zshrc
else
echo ' ~/.zshrc already exists'
fi
if [ ! -f ~/.profile ]
then
ln -s $DIR/.profile ~/.profile
else
echo ' ~/.profile already exists'
fi
if [ ! -f ~/.oh-my-zsh/themes/fragan.zsh-theme ]
then
ln -s $DIR/.oh-my-zsh/themes/fragan.zsh-theme ~/.oh-my-zsh/themes/
else
echo ' ~/.oh-my-zsh/themes/fragan.zsh-theme already exists'
fi
if [ ! -f ~/.gitconfig ]
then
ln -s $DIR/.gitconfig ~/.gitconfig
else
echo ' ~/.gitconfig already exists'
fi
if [ ! -f ~/.rspec ]
then
ln -s $DIR/.rspec ~/.rspec
else
echo ' ~/.rspec already exists'
fi
if [ ! -f ~/.gemrc ]
then
ln -s $DIR/.gemrc ~/.gemrc
else
echo ' ~/.gemrc already exists'
fi
if [ ! -f ~/.gorc ]
then
ln -s $DIR/.gorc ~/.gorc
else
echo ' ~/.gorc already exists'
fi