-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·28 lines (25 loc) · 830 Bytes
/
install.sh
File metadata and controls
executable file
·28 lines (25 loc) · 830 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
#!/bin/bash
# Define the source/target pairs
SYMLINKS=(
"$HOME/dotfiles/zshrc $HOME/.zshrc"
"$HOME/dotfiles/zshenv $HOME/.zshenv"
"$HOME/dotfiles/aliases $HOME/.aliases"
"$HOME/dotfiles/wezterm $HOME/.config/wezterm"
"$HOME/dotfiles/ghostty $HOME/.config/ghostty"
"$HOME/dotfiles/fish $HOME/.config/fish"
"$HOME/dotfiles/alacritty $HOME/.config/alacritty"
"$HOME/dotfiles/nvim $HOME/.config/nvim"
"$HOME/dotfiles/starship.toml $HOME/.config/starship.toml"
)
# Loop through the source/target pairs and create symlinks
for PAIR in "${SYMLINKS[@]}"; do
# Split the pair into source and target
read -r SOURCE TARGET <<<"$PAIR"
# Check if the symlink already exists
if [ ! -e "$TARGET" ]; then
echo "Creating: $SOURCE -> $TARGET"
ln -s "$SOURCE" "$TARGET"
else
echo "Already exists: $SOURCE -> $TARGET"
fi
done