-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·58 lines (51 loc) · 1.87 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
# this is important if the user clones the repo elsewhere
export dotfiles_directory=$(pwd)
echo "Dotfiles directory: $dotfiles_directory"
# you dont even need this part
echo "User directory: $HOME"
# here come the links
link_config_directory_default_yes() {
local directory_name="$1"
local source_path="$dotfiles_directory/configs/$directory_name"
local target_path="$HOME/.config/"
read -p "Do you want to link $directory_name? [Y/n] " answer
if [[ -z "$answer" || "$answer" =~ ^[Yy]$ ]]; then
ln -s "$source_path" "$target_path"
echo "Linked $directory_name"
else
echo "Skipped $directory_name"
fi
}
link_config_directory_default_no() {
local directory_name="$1"
local source_path="$dotfiles_directory/configs/$directory_name"
local target_path="$HOME/.config/$directory_name"
read -p "Do you want to link $directory_name? [y/N] " answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
ln -s "$source_path" "$target_path"
echo "Linked $directory_name"
else
echo "Skipped $directory_name"
fi
}
link_config_directory_default_no "aerospace"
link_config_directory_default_no "alacritty"
link_config_directory_default_yes "borders"
link_config_directory_default_yes "btop"
link_config_directory_default_yes "cava"
link_config_directory_default_yes "fastfetch"
link_config_directory_default_no "iterm2"
link_config_directory_default_yes "kitty"
link_config_directory_default_yes "nvim"
link_config_directory_default_yes "sketchybar"
link_config_directory_default_yes "skhd"
link_config_directory_default_yes "starship"
link_config_directory_default_yes "yabai"
# i dont know whats happening here AHH
# read -p "Do you want to link zshrc? [Y/n] " answer
# if [[ -z "$answer" || "$answer" =~ ^[Yy]$ ]]; then
# ln -s $dotfiles_directory/zshrc $HOME/.zshrc
# echo "Linked zshrc"
# else
# echo "Skipped zshrc"
# fi