This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
executable file
·56 lines (45 loc) · 1.52 KB
/
setup
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
. ~/dotfiles/oh-my-zsh-custom/platform.sh
rm ~/.vimrc
rm ~/.dircolors
rm ~/.gitconfig
rm ~/.ackrc
rm ~/.gitignore_global
ln -s ~/dotfiles/vimrc ~/.vimrc
ln -s ~/dotfiles/dircolors ~/.dircolors
ln -s ~/dotfiles/gitconfig ~/.gitconfig
ln -s ~/dotfiles/ackrc ~/.ackrc
ln -s ~/dotfiles/gitignore_global ~/.gitignore_global
ln -s ~/dotfiles/agignore ~/.agignore
if [ $platform == "windows" ]; then
rm ~/.bashrc
rm ~/.bash_aliases
ln -s ~/dotfiles/bash/bashrc ~/.bashrc
ln -s ~/dotfiles/bash/bash_aliases ~/.bash_aliases
else
rm ~/.zshrc
rm ~/.tmux.conf
rm ~/.oh-my-zsh-custom
rm -rf ~/.config/xmodmap
ln -s ~/dotfiles/zshrc ~/.zshrc
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/dotfiles/oh-my-zsh-custom ~/.oh-my-zsh-custom
ln -s ~/dotfiles/xmodmap ~/.config/xmodmap
if [ ! -e ~/.config/fontconfig ]; then
sudo pacman -S fontconfig
ln -s ~/dotfiles/fonts/10-powerline-symbols.conf ~/.config/fontconfig/conf.d/10-powerline-symbols.conf
fi
if [ ! -e ~/.oh-my-zsh ]; then
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
fi
fi
if [ ! -e ~/.vim ]; then
mkdir -p ~/.vim/bundle
mkdir -p ~/.backups/vim
git clone https://github.com/gmarik/Vundle.vim ~/.vim/bundle/Vundle.vim
if [ $platform == "windows" ]; then
vim -u NONE +"silent! so ~/.vimrc" +"set noshellslash" +BundleInstall +qall
else
vim -u NONE +"silent! so ~/.vimrc" +BundleInstall +qall
fi
ln -s ~/dotfiles/ultisnips ~/.vim/UltiSnips
fi