-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·51 lines (46 loc) · 1.05 KB
/
install.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
#!/bin/bash
# move original dotfiles in $HOME
if [ -f ~/.zshrc ]
then
mv -f ~/.zshrc ~/.zshrc-dist
fi
if [ -f ~/.pathes ]
then
mv -f ~/.pathes ~/.pathes-dist
fi
if [ -f ~/.bashrc ]
then
mv -f ~/.bashrc ~/.bashrc-dist
fi
if [ -f ~/.bash_aliases ]
then
mv -f ~/.bash_aliases ~/.bash_aliases-dist
fi
if [ -d ~/.vim ]
then
mv -f ~/.vim ~/.vim-dist
fi
if [ -f ~/.gitignore_global ]
then
mv -f ~/.gitignore_global ~/.gitignore_global-dist
fi
if [ -f ~/.gitconfig ]
then
mv -f ~/.gitconfig ~/.gitconfig-dist
fi
if [ -f ~/.zshrc.pre-oh-my-zsh ]
then
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh-dist
fi
# create symlinks
ln -s ~/dotfiles/.zshrc ~/.zshrc
ln -s ~/dotfiles/.pathes ~/.pathes
ln -s ~/dotfiles/.zshrc.pre-oh-my-zsh ~/.zshrc.pre-oh-my-zsh
#ln -s ~/dotfiles/.zshrcre- ~/.zshrc
ln -s ~/dotfiles/.bashrc ~/.bashrc
ln -s ~/dotfiles/.vim ~/.vim
ln -sf ~/dotfiles/.vimrc ~/.vimrc
ln -sf ~/dotfiles/.gitignore_global ~/.gitignore_global
ln -sf ~/dotfiles/.gitconfig ~/.gitconfig
ln -sf ~/dotfiles/.bash_aliases ~/.bash_aliases
echo "done."