-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymlink.sh
executable file
·42 lines (35 loc) · 1.33 KB
/
symlink.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
#!/usr/bin/env bash
# Script to create symlinks to all dotfiles
echo "===== Symlinking dotfiles ====="
DOTFILES="$HOME/dotfiles"
CONFIG_DIR="$HOME/.config"
BIN_DIR="$HOME/.local/bin"
create_symlink() {
local src="$1"
local dest="$2"
if [ -e "$dest" ] || [ -L "$dest" ]; then
trash put "$dest"
fi
ln -sf "${DOTFILES}/${src}" "${dest}"
}
# create_symlink "justfile" "$HOME/justfile"
create_symlink rsync_excludes "$HOME/rsync_excludes"
create_symlink symlink.sh "$BIN_DIR/.f"
create_symlink direnv/direnvrc "$CONFIG_DIR/direnv/direnvrc"
create_symlink dunst/ "$CONFIG_DIR/dunst"
# create_symlink dygma/ "$CONFIG_DIR/dygma"
create_symlink foot "$CONFIG_DIR/foot"
create_symlink fuzzel "$CONFIG_DIR/fuzzel"
create_symlink ghostty "$CONFIG_DIR/ghostty"
# create_symlink kanata "$CONFIG_DIR/kanata"
# create_symlink keyd "$CONFIG_DIR/keyd"
# create_symlink litecli "$CONFIG_DIR/litecli"
create_symlink nushell/scripts "$CONFIG_DIR/nushell/scripts"
create_symlink nvim "$CONFIG_DIR/nvim"
create_symlink rofi "$CONFIG_DIR/rofi"
create_symlink sway "$CONFIG_DIR/sway"
create_symlink swaylock/ "$CONFIG_DIR/swaylock"
# create_symlink tridactyl/ "$CONFIG_DIR/tridactyl"
create_symlink waybar "$CONFIG_DIR/waybar"
create_symlink libinput-gestures.conf "$CONFIG_DIR/libinput-gestures.conf"
echo "===== Finished symlinking to dotfiles ====="