-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·50 lines (40 loc) · 1.24 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# https://stackoverflow.com/questions/59895/how-do-i-get-the-directory-where-a-bash-script-is-located-from-within-the-script
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/install_minimal.sh
link_file {$REPO,$HOME}/.gdbinit
link_file {$REPO,$HOME}/.zlogin
if confirm "Install NeoVim?"
then
link_folder $REPO/.config/nvim $HOME/.config
fi
if confirm "Install vim YCM?"
then
# Setup YCM
# requires some libs first, check the help (:h Ycm)
$HOME/.vim/plugged/YouCompleteMe/install.py --clang-completer
fi
if confirm "Install cmus cfg?"
then
mkdir -p $HOME/.config/cmus
link_file {$REPO,$HOME}/.config/cmus/rc
fi
if confirm "Install sway cfg?"
then
mkdir -p $HOME/.config/sway
link_file {$REPO,$HOME}/.config/sway/config
# i3status is still used to generate the text for swaybar
mkdir -p $HOME/.config/i3status
link_file {$REPO,$HOME}/.config/i3status/config
fi
if confirm "Install alacritty cfg?"
then
# Config path
mkdir -p $HOME/.config/alacritty
link_file {$REPO,$HOME}/.config/alacritty/alacritty.toml
fi
if confirm "Install custom scripts?"
then
mkdir -p $HOME/.local/bin
link_file {$REPO,$HOME/.local}/bin/set_wallpaper
fi