-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
42 lines (36 loc) · 718 Bytes
/
Copy pathinstall.sh
File metadata and controls
42 lines (36 loc) · 718 Bytes
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
#!/bin/bash
# soft link
# remind to change this
dotfiles="$HOME/projects/dotfiles/dotfiles/.config"
configs=(
alacritty
bspwm
dunst
fish
fontconfig
lazygit
nvim
picom
polybar
ranger
rofi
sxhkd
scripts
tmux
yazi
)
for file in "${configs[@]}"; do
target="$HOME/.config/$file"
if [ -e "$target" ]; then
if [ -L "$target" ]; then
echo "$target is already a symbolic link. Skipping..."
continue
else
echo "Backing up $target"
mv "$target" "$target.bak"
fi
fi
echo "Creating symlink for $file"
ln -s "$dotfiles/$file" "$target"
done
echo "Dotfiles installation complete!"