-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·45 lines (36 loc) · 1.76 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
#!/bin/bash
set -euo pipefail
source './utils.sh'
# Link entire configuration folders
link_same "$(pwd)/awesome" "$HOME/.config/awesome"
link_same "$(pwd)/bat" "$HOME/.config/bat"
link_same "$(pwd)/direnv" "$HOME/.config/direnv"
link_same "$(pwd)/gdb" "$HOME/.config/gdb"
link_same "$(pwd)/kitty" "$HOME/.config/kitty"
link_same "$(pwd)/mpv" "$HOME/.config/mpv"
link_same "$(pwd)/pypoetry" "$HOME/.config/pypoetry"
link_same "$(pwd)/rofi" "$HOME/.config/rofi"
link_same "$(pwd)/wallpapers" "$HOME/Pictures/wallpapers"
# Link just files instead of entire folders to avoid
# polluting this dotfiles directory with generated files
link_same_files "$(pwd)/emacs" "$HOME/.config/emacs"
link_same_files "$(pwd)/nvim" "$HOME/.config/nvim"
link_same_files "$(pwd)/vscode" "$HOME/.config/Code - Insiders/User"
link_same_files "$(pwd)/xdg" "$HOME/.config"
# Link just one file
link_same_single "$(pwd)" '.gitconfig' "$HOME"
link_same_single "$(pwd)" '.haskeline' "$HOME"
link_same_single "$(pwd)" '.inputrc' "$HOME"
link_same_single "$(pwd)" '.p10k.zsh' "$HOME"
link_same_single "$(pwd)" '.theme.zsh' "$HOME"
link_same_single "$(pwd)" '.tmux.conf' "$HOME"
link_same_single "$(pwd)" '.xinitrc' "$HOME"
link_same_single "$(pwd)" '.zinit.zsh' "$HOME"
link_same_single "$(pwd)" '.zshrc' "$HOME"
link_same_single "$(pwd)" 'picom.conf' "$HOME/.config"
link_same_single "$(pwd)" 'zathurarc' "$HOME/.config/zathura"
# GTK 3
link_same_single "$(pwd)" 'settings.ini' "$HOME/.config/gtk-3.0"
# Use same configuration file for neovim and vim
link_same "$(pwd)/nvim/init.vim" "$HOME/.vimrc"
echo -e "\033[0;32mLinked all configuration files\033[0m"