-
Notifications
You must be signed in to change notification settings - Fork 13
/
install.sh
executable file
·37 lines (27 loc) · 1.11 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
#! /bin/bash
dotfiles=$HOME/.dotfiles
zshrc=$dotfiles/.zshrc
vimrc=$dotfiles/.vimrc
gvimrc=$dotfiles/.gvimrc
vimfiles=$dotfiles/.vim
tmux_conf=$dotfiles/.tmux.conf
tmux_powerline_rc=$dotfiles/.tmux-powerlinerc
hammerspoon=$dotfiles/.hammerspoon
gitconfig=$dotfiles/.gitconfig
[[ ! -e $HOME/.zshrc ]] && ln -s $zshrc $HOME/.zshrc \
|| echo ".zshrc already exists..."
[[ ! -e $HOME/.vimrc ]] && ln -s $vimrc $HOME/.vimrc \
|| echo ".vimrc already exists..."
[[ ! -e $HOME/.gvimrc ]] && ln -s $gvimrc $HOME/.gvimrc \
|| echo ".gvimrc already exists..."
[[ ! -e $HOME/.vim ]] && ln -s $vimfiles $HOME/.vim \
|| echo ".vim already exists..."
[[ ! -e $HOME/.tmux.conf ]] && ln -s $tmux_conf $HOME/.tmux.conf \
|| echo ".tmux.conf already exists..."
[[ ! -e $HOME/.tmux-powerlinerc ]] && ln -s $tmux_powerline_rc $HOME/.tmux-powerlinerc \
|| echo ".tmux-powerlinerc already exists..."
[[ ! -e $HOME/.hammerspoon ]] && ln -s $hammerspoon $HOME/.hammerspoon \
|| echo ".hammerspoon already exists..."
[[ ! -e $HOME/.gitconfig ]] && ln -s $gitconfig $HOME/.gitconfig \
|| echo ".gitconfig already exists..."
echo "Done"