-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
37 lines (31 loc) · 935 Bytes
/
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
#!/bin/bash
USER=$(whoami)
DIR=$(pwd)
#git submodule init
#git submodule update --remote
#git clone https://github.com/VundleVim/Vundle.vim.git vim/bundle/vundle
[[ ! -s $DIR/vim/autoload/plug.vim ]]&&curl -fLo $DIR/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
link_file(){
for i in $@;do
ln -s $DIR/$i $HOME/.$i
done
}
link_folder(){
for i in $@;do
[[ -x $HOME/.$i ]]&&
echo "$i exists"||
ln -s $DIR/$i $HOME/.$i
done
}
link_config(){
for i in $@;do
[[ -x $HOME/.config/$i ]]&&
echo "~/.config/$i exists"||
ln -s $DIR/$i $HOME/.config/$i
done
}
link_file zshrc vimperatorrc tmux.conf conkyrc compton.conf vimrc Xdefaults
link_folder aria2 vim scripts zsh hammerspoon
link_config mpv awesome ranger nvim mpd ncmpcpp
mkdir "$HOME/.config/gtk-3.0"
ln -s $DIR/gtk.css "$HOME/.config/gtk-3.0/"