-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsync.sh
executable file
·56 lines (51 loc) · 1.19 KB
/
sync.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
45
46
47
48
49
50
51
52
53
54
55
56
#!/opt/homebrew/bin/fish
set paths \
~/.gitconfig \
~/.psqlrc \
~/.less \
~/.zshrc \
~/.tmux.conf \
~/.rndebuggerrc \
~/.config/kitty \
~/.config/pgcli \
~/.config/litecli \
~/.config/starship.toml \
~/.config/fish/config.fish \
~/.config/zk \
~/.config/nvim \
~/.config/alacritty \
~/.config/fontconfig/fonts.conf \
~/.config/wezterm \
~/.config/helix \
~/.config/picom \
~/.config/bspwm \
~/.config/sxhkd \
~/.config/rofi \
~/.config/polybar \
~/.config/nushell \
"$HOME/Library/Application Support/nushell" \
~/.config/zathura \
~/.config/i3 \
~/.config/zellij \
~/.config/dunst \
~/.config/watson \
~/.config/lazygit \
~/.config/btop \
~/.config/ghostty
for path in $paths
echo "----------------------------------"
set item (basename $path)
if test ! -e ~/dotfiles/$item
echo "$item not found in dotfiles"
exit 1
end
if test -e ~/dotfiles/$item
echo "rm $path"
rm -rf $path
end
if test ! -e $path
mkdir -p (dirname $path)
echo "link ~/dotfiles/$item $path"
ln -s ~/dotfiles/$item $path
end
end