-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·44 lines (35 loc) · 1.61 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
#!/usr/bin/env bash
set -e -o pipefail -o nounset
readonly dotfiles_dir="$HOME/.dotfiles"
if [ "$(uname)" = "Darwin" ]; then
LN='ln -sf'
mkdir -p "$HOME"/{.vim,.tmux/plugins}
else
LN='ln -srf'
mkdir -p "$HOME"/{.vim,.tmux/plugins,.mpv,.mpd,.ncmpcpp,.config/rofi,.config/termite,.config/mpd}
mkdir -p "$HOME"/.vim/{swp,backup}
${LN} "$dotfiles_dir/system/xinitrc" "$HOME/.xinitrc"
${LN} "$dotfiles_dir/apps/mpv" "$HOME/.mpv/config"
${LN} "$dotfiles_dir/apps/mpd.conf" "$HOME.config/mpd/mpd.conf"
${LN} "$dotfiles_dir/apps/ncmpcpp" "$HOME/.ncmpcpp/config"
${LN} "$dotfiles_dir/apps/compton.conf" "$HOME/.compton.conf"
${LN} "$dotfiles_dir/apps/termite.dark" "$HOME/.config/termite/config"
${LN} "$dotfiles_dir/apps/rofi.config" "$HOME/.config/rofi/config"
fi
mkdir -p "$HOME"/.config/htop
${LN} "$dotfiles_dir/shell/bashrc" "$HOME/.bashrc"
${LN} "$dotfiles_dir/shell/inputrc" "$HOME/.inputrc"
modules_dir="$HOME/.modules"
mkdir -p "$modules_dir"
# shellcheck disable=2086
${LN}n "$dotfiles_dir/modules/bash-it" "$HOME/.bash_it"
${LN} "$dotfiles_dir/modules/z/z.sh" "$modules_dir/z"
${LN} "$dotfiles_dir/modules/fz/fz.sh" "$modules_dir/fz"
${LN} "$dotfiles_dir/apps/tmux.conf" "$HOME/.tmux.conf"
${LN} "$dotfiles_dir/apps/vimrc" "$HOME/.vimrc"
${LN} "$dotfiles_dir/apps/vimrc.dark" "$HOME/.vim/vimrc.background"
${LN} "$dotfiles_dir/apps/gitconfig" "$HOME/.gitconfig"
${LN} "$dotfiles_dir/apps/htoprc" "$HOME/.config/htop/htoprc"
${LN} "$dotfiles_dir/apps/toprc" "$HOME/.toprc"
${LN} "$dotfiles_dir/apps/dir_colors" "$HOME/.dir_colors"
${LN} "$dotfiles_dir/modules/tpm" "$HOME/.tmux/plugins/"