-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·77 lines (68 loc) · 2.14 KB
/
install
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
70
71
72
73
74
75
76
#!/bin/bash
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
source "$DIR/common"
function main {
create_all_links
install_vundles
}
function create_all_links {
link_file ackrc
link_file agignore
link_file bash_aliases
link_file bin bin
link_file config/lynx
link_file config/qutebrowser/qutebrowser.conf
link_file config/qutebrowser/keys.conf
link_file config/alacritty/alacritty.toml
link_file config/alacritty/theme.toml
link_file config/alacritty/green.toml
link_file config/alacritty/font.toml
link_file config/alacritty/font-aquarius.toml
link_file config/gtk-3.0/gtk.css
link_file config/dunst/dunstrc
link_file config/nvim/init.vim
link_file config/ctags/ignore.ctags
link_file config/ctags/scala.ctags
link_file config/ctags/RSpec.ctags
link_file config/tig/config
link_file gitconfig
link_file gitignore
link_file i3
link_file config/sway/config
link_file xkb
link_file lynxrc
link_file surf.css
link_file tmuxinator
link_file toprc
link_file vim
link_file vimrc
link_file xinitrc
link_file Xmodmap
link_file Xmodmap_keys
link_file Xresources
link_file zshrc
link_file zsh_theme
link_file rbenv_init
link_file df_interface.txt .dwarffortress/data/init/interface.txt
link_override i3status .conf
link_override tmux .conf
link_override tmux.weechat .conf
[ -d ~/code/ansible ] && copy_file vtools/traprack code/ansible/vtools/traprack
# sudo cp ~/code/dotfiles/slash/sv-code.map /usr/share/X11/xkb/symbols
if [ `hostname` = "cedra" ]; then
sudo cp ~/code/dotfiles/slash/etc/modprobe.d/iwl.conf /etc/modprobe.d/iwl.conf
fi
}
function install_vundles {
vundle_path="$HOME/.vim/bundle/Vundle.vim"
if [ ! -e "$vundle_path" ]; then
git clone https://github.com/gmarik/Vundle.vim.git $vundle_path
sed -ir 's/\(git clone\)\( --recursive\)/\1 --depth 1\2/' vim/bundle/Vundle.vim/autoload/vundle/installer.vim
fi
# TODO: only quit unless there was errors
vim -c VundleInstall -c qa
# change branches manually
(cd ~/.vim/bundle/fzf.vim && git fetch origin add-git-files-modified:add-git-files-modified && git checkout add-git-files-modified)
}
main