aboutsummaryrefslogtreecommitdiff
path: root/install
blob: 9d1264ade1c57be303d47724fdf4fa07ec0f45a8 (plain)
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
#!/bin/sh

cd `dirname $0`

git submodule update --init --recursive || (echo "Submodule update failed!"; exit 5)

# Source inst and diff function
. ./utils/inst

# Load if we force changes (implies no interaction)
[ "$1" = "-f" ] && FORCE=true || FORCE=false

#################################################################################
if [ -e /etc/arch-release ] && ask "Archlinux software"; then
	source utils/arch
	archlinux_inst
fi

if ask "Install Bashrc"; then
	inst bashrc ~/.bashrc
	inst shellrc ~/.shellrc
fi

if ask "Install zshrc"; then
	inst zshrc ~/.zshrc
	inst shellrc ~/.shellrc
fi

if ask "Install GIT configuration"; then
	inst gitconfig ~/.gitconfig
	inst local/git-prompt.sh ~/.local/
fi

if ask "Install configurations for various utility tools"; then
	inst screenrc ~/.screenrc
	mkdir -p ~/.config/htop
	inst config/htop/htoprc ~/.config/htop/htoprc
fi

if ask "Install vim scripts"; then
	inst vimrc ~/.vimrc
	mkdir -p ~/.cache/vim # directory for *.swp files
	mkdir -p ~/.cache/vim-undo # directory for undo files
fi