-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·65 lines (50 loc) · 1.47 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
set -eu
for arg in "$@"; do declare $arg='1'; done
if [ ! -n "$macos" ];
then linux=1;
else
linux="";
fi
# install wezterm config
ln -s "$HOME/dotfiles/.wezterm.lua" "$HOME/.wezterm.lua" || :
# install neovim config
if [ ! -d "$HOME/.config/nvim" ]; then
ln -s "$HOME/dotfiles/nvim" "$HOME/.config/nvim" || :
fi
# install starship config
ln -s "$HOME/dotfiles/starship.toml" "$HOME/.config/starship.toml" || :
echo $macos
if [ ! -n "$linux" ]; then
# install aerospace config
ln -s "$HOME/dotfiles/aerospace.toml" "$HOME/.aerospace.toml" || :
if [ ! -d "$HOME/.config/sketchybar" ]; then
ln -s "$HOME/dotfiles/sketchybar" "$HOME/.config/sketchybar" || :
fi
if [ ! -d "$HOME/.config/borders" ]; then
ln -s "$HOME/dotfiles/borders" "$HOME/.config/borders" || :
fi
if [ ! -d "$HOME/.config/neovide" ]; then
ln -s "$HOME/dotfiles/neovide" "$HOME/.config/neovide" || :
fi
if [ ! -d "$HOME/.config/ghostty" ]; then
ln -s "$HOME/dotfiles/ghostty" "$HOME/.config/ghostty" || :
fi
else
# install sway
if [ ! -d "$HOME/.config/sway" ]; then
ln -s "$HOME/dotfiles/sway" "$HOME/.config/sway" || :
fi
# install waybar
if [ ! -d "$HOME/.config/waybar" ]; then
ln -s "$HOME/dotfiles/waybar" "$HOME/.config/waybar" || :
fi
# install rofi
if [ ! -d "$HOME/.config/rofi" ]; then
ln -s "$HOME/dotfiles/rofi" "$HOME/.config/rofi" || :
fi
# install rofi
if [ ! -d "$HOME/.config/dunst" ]; then
ln -s "$HOME/dotfiles/dunst" "$HOME/.config/dunst" || :
fi
fi