-
Notifications
You must be signed in to change notification settings - Fork 3
/
install
executable file
·49 lines (42 loc) · 1.12 KB
/
install
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
#!/bin/sh
dotfiles_dir="$(cd "$( dirname "$0" )" && pwd)"
link() {
case $1 in
~/*)
source_filepath=$1;;
*)
source_filepath="$dotfiles_dir/$1";;
esac
ln -s "$source_filepath" "$2"
echo -n "$source_filepath -> $2: "
case $? in
0 ) echo 'Succeed' ;;
* ) echo "Failed ($?)" ;;
esac
}
mkdir -p \
~/.config/nvim/backup \
~/.config/nvim/sessions \
~/.config/nvim/swap \
~/.config/nvim/undo
link .vimrc ~/.vimrc
link .vimrc ~/.config/nvim/init.vim
link ~/.config/nvim ~/.vim
link .gitconfig ~/.config/git/config
link .zshrc ~/.zshrc
link alacritty.toml ~/.config/alacritty.toml
link starship.toml ~/.config/starship.toml
# Only for Linux.
if [ "$(uname)" = 'Linux' ]; then
link .fehbg ~/.fehbg
link .Xresources ~/.Xresources
link .Xresources.flan ~/.Xresources.flan
link .Xresources.rosetta ~/.Xresources.rosetta
link .xinitrc ~/.xinitrc
link .Xmodmap ~/.Xmodmap
mkdir -p ~/.config/i3 ~/.config/i3status
link i3status.conf ~/.config/i3status/config
link i3config ~/.config/i3/config
link i3exit ~/.config/i3/i3exit
link gtk-3.0/settings.ini ~/.config/gtk-3.0/settings.ini
fi