-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.bash
More file actions
executable file
·43 lines (31 loc) · 827 Bytes
/
setup.bash
File metadata and controls
executable file
·43 lines (31 loc) · 827 Bytes
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
#!/usr/bin/env bash
declare -a files
# Shell related configs
files+=(.bashrc .zprofile .zshrc)
# Multiplexer configs
files+=(.tmux.conf)
# Vim related configs
files+=(.vim .vimrc)
# Configs for readline like libraries.
files+=(.inputrc .haskeline .editrc)
# Nethack
files+=(.nethackrc)
# GPG
files+=(.gnupg/gpg.conf .gnupg/gpg-agent.conf)
for file in "${files[@]}"; do
dest="${HOME}/${file}"
if [[ ! -e "$dest" ]]; then
ln -s "${HOME}/Personal-Configurations/${file}" "$dest"
fi
done
vim_dir="${HOME}/.vim"
for dir in ${vim_dir}/{tmp,backup}; do
if [[ ! -e "$dir" ]]; then
mkdir "$dir"
fi
done
vundle_dir="${vim_dir}/bundle/vundle"
if [[ ! -e "$vundle_dir" ]]; then
git clone https://github.com/gmarik/vundle.git "$vundle_dir"
fi
vim -c "BundleInstall" -c "only" 2>/dev/null