-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·35 lines (32 loc) · 902 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
#!/bin/bash
BASE=$(cd "$(dirname $0)"; pwd)
case `uname` in
Darwin*)
function update() {
if [[ -n "$(dirname $2)" ]]; then
mkdir -p "$(dirname $2)"
fi
ln -s -F -h $1 $2
}
;;
*)
function update() {
if [[ -n "$(dirname $2)" ]]; then
mkdir -p "$(dirname $2)"
fi
ln -s --force --no-dereference $1 $2
}
esac
mkdir -p $HOME/.vim-data/undo
mkdir -p $HOME/.vim-data/rcs
update $BASE/bash_interactive $HOME/.bash_interactive
update $BASE/clangd_config.yaml $HOME/.config/clangd/config.yaml
update $BASE/config/kitty $HOME/.config/kitty
update $BASE/config/nvim $HOME/.config/nvim
update $BASE/fonts $HOME/.fonts
update $BASE/gdbinit $HOME/.gdbinit
update $BASE/gitconfig $HOME/.gitconfig
update $BASE/inputrc $HOME/.inputrc
update $BASE/tmux.conf $HOME/.tmux.conf
update $BASE/vimrc $HOME/.vimrc
update $BASE/Xmodmap $HOME/.Xmodmap