-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·49 lines (41 loc) · 1.29 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
#!/usr/bin/env bash
set -e
OS="$(uname)"
ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# bring in helper functions
source $ROOTDIR/lib.sh
# install common dotfiles
install_dotfile gitconfig
install_dotfile gitignore
install_dotfile ideavimrc
install_dotfile ripgreprc
install_dotfile taskrc
install_dotfile vimrc_basic
install_dotfile zsh
install_dotfile zshrc
install_dotfile xsessionrc
mkdir -p .config/nvim/swp
install_dotfile init.vim .config/nvim/init.vim
install_dotfile coc-settings.json .config/nvim/coc-settings.json
# install linux specific dotfiles
if [[ "${OS}" != "Darwin" ]] ; then
install_dotfile npmrc
install_dotfile Xresources
install_dotfile autorandr
install_dotfile dunst .config/dunst
install_dotfile alacritty .config/alacritty
install_dotfile herbstluftwm .config/herbstluftwm
install_dotfile polybar .config/polybar
install_dotfile rofi .config/rofi
install_dotfile zathura .config/zathura
fi
# link this repo into home as .config/nixpkgs
safelink "$HOME/.config/nixpkgs" "$ROOTDIR"
mkdir -p "$HOME/.nixpkgs"
safelink "$HOME/.nixpkgs/config.nix" "$ROOTDIR/config.nix"
if [[ "${OS}" != "Darwin" ]] ; then
# add a link to bin
safelink "$HOME/bin" "$ROOTDIR/bin"
fi
# install wallpapers
safelink "$HOME/.wallpapers" "$ROOTDIR/wallpapers"