fix: Add alacrity themes
This commit is contained in:
17
dotfiles.sh
17
dotfiles.sh
@@ -1,4 +1,4 @@
|
|||||||
cd ~.dotfiles
|
cd ~/.dotfiles
|
||||||
git pull
|
git pull
|
||||||
echo "Creating symbolic links for dotfiles..."
|
echo "Creating symbolic links for dotfiles..."
|
||||||
|
|
||||||
@@ -24,6 +24,21 @@ create_symlinks() {
|
|||||||
echo "Linking directory: $src_dir/.zsh_functions -> $target_zsh_functions"
|
echo "Linking directory: $src_dir/.zsh_functions -> $target_zsh_functions"
|
||||||
ln -s "$src_dir/.zsh_functions" "$target_zsh_functions"
|
ln -s "$src_dir/.zsh_functions" "$target_zsh_functions"
|
||||||
fi
|
fi
|
||||||
|
# Handle .config/alacritty/themes directory specially - link the whole directory
|
||||||
|
if [ -d "$src_dir/.config/alacritty/themes" ]; then
|
||||||
|
local target_alacritty_themes="$target_dir/.config/alacritty/themes"
|
||||||
|
|
||||||
|
# Remove existing directory or symlink if it exists
|
||||||
|
if [ -e "$target_alacritty_themes" ] || [ -L "$target_alacritty_themes" ]; then
|
||||||
|
echo "Removing existing: $target_alacritty_themes"
|
||||||
|
rm -rf "$target_alacritty_themes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create symlink for the entire directory
|
||||||
|
echo "Linking directory: $src_dir/.config/alacritty/themes -> $target_alacritty_themes"
|
||||||
|
ln -s "$src_dir/.config/alacritty/themes" "$target_alacritty_themes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Find all files and directories in the source directory, excluding .git, README.md, and .zsh_functions
|
# Find all files and directories in the source directory, excluding .git, README.md, and .zsh_functions
|
||||||
find "$src_dir" \( -not -path "*/\.git*" -and -not -name "README.md" -and -not -path "*/.zsh_functions/*" -and -not -path "*/.zsh_functions" \) -and \( -type f -o -type l \) | while read -r src_file; do
|
find "$src_dir" \( -not -path "*/\.git*" -and -not -name "README.md" -and -not -path "*/.zsh_functions/*" -and -not -path "*/.zsh_functions" \) -and \( -type f -o -type l \) | while read -r src_file; do
|
||||||
|
|||||||
Reference in New Issue
Block a user