-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·31 lines (24 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
#!/bin/bash
set -euo pipefail
source './utils.sh'
# Install polybar fonts
install_fonts
# Link entire configuration folders
link_same "$(pwd)/alacritty" "$HOME/.config/alacritty"
link_same "$(pwd)/picom" "$HOME/.config/picom"
link_same "$(pwd)/polybar" "$HOME/.config/polybar"
link_same "$(pwd)/networkmanager-dmenu" "$HOME/.config/networkmanager-dmenu"
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)/nvim" "$HOME/.config/nvim"
link_same_files "$(pwd)/vscode" "$HOME/.config/Code/User"
link_same_files "$(pwd)/i3" "$HOME/.config/i3"
# Link just one file
link_same_single "$(pwd)/tmux" '.tmux.conf' "$HOME"
link_same_single "$(pwd)/scripts" 'tmux-sessionizer' "$HOME/.local/bin"
link_same_single "$(pwd)/scripts" 'tmux-cht' "$HOME/.local/bin"
link_same_single "$(pwd)/zsh" '.zshrc' "$HOME"
link_same_single "$(pwd)/zsh" '.zsh_plugins.txt' "$HOME"
link_same_single "$(pwd)" 'starship.toml' "$HOME/.config"
echo -e "\033[0;32mLinked all configuration files\033[0m"