-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·50 lines (33 loc) · 1.21 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
#!/bin/sh
set -e
create_dotfile_symlink() {
DEST_PATH="$HOME/$2"
SRC_PATH="$PWD/$1"
if [ -e "$DEST_PATH" ]; then
echo "File $DEST_PATH already exists!"
else
ln -s -v "$SRC_PATH" "$DEST_PATH"
fi
}
create_dotfile_symlink "alacritty.yml" ".alacritty.yml"
create_dotfile_symlink "vim/vimrc" ".vimrc"
create_dotfile_symlink "vim" ".vim"
create_dotfile_symlink "Xresources" ".Xresources"
create_dotfile_symlink "Xsession" ".xsession"
create_dotfile_symlink "Xmodmap" ".Xmodmap"
create_dotfile_symlink "zsh/zshrc" ".zshrc"
create_dotfile_symlink "zsh" ".zsh"
create_dotfile_symlink "bash/bashrc" ".bashrc"
create_dotfile_symlink "git/gitconfig" ".gitconfig"
create_dotfile_symlink "urxvt" ".urxvt"
create_dotfile_symlink "tmux/tmux.conf" ".tmux.conf"
create_dotfile_symlink "bin" ".bin"
create_dotfile_symlink "bg" ".bg"
create_dotfile_symlink "config/awesome" ".config/awesome"
create_dotfile_symlink "config/systemd" ".config/systemd"
create_dotfile_symlink "gdb/gdbinit" ".gdbinit"
create_dotfile_symlink "gdb/gdbinit-gef.py" ".gdbinit-gef.py"
create_dotfile_symlink "psql/psqlrc" ".psqlrc"
create_dotfile_symlink "emacs.d" ".emacs.d"
create_dotfile_symlink "top/toprc" ".toprc"
create_dotfile_symlink "mutt" ".mutt"