Add more stuff

This commit is contained in:
2025-11-13 16:59:59 -06:00
parent 55f1b32e4d
commit 5f73b76800
32 changed files with 117473 additions and 15 deletions

View File

@@ -22,14 +22,25 @@ fi
# Symlink Panama .bashrc file to ~/.bashrc
ln -s "$PANAMA_BASH/.bashrc" "$HOME/.bashrc"
# --- Neovim ---
# Backup existing Neovim config if it's a regular directory
if [ -d "$CONFIG/nvim" ] && [ ! -L "$CONFIG/nvim"]; then
mv "$CONFIG/nvim" "$PANAMA_OLD/nvim"
fi
# Remove old symlink if it exists & points to somewhere else
if [ -L "$CONFIG/nvim" ]; then
rm "$CONFIG/nvim"
fi
# Symlink Panama nvim directory to ~/.config/nvim
ln -s "$PANAMA_DOT/nvim" "$CONFIG/nvim"
dirs=("espanso", "forge", "ghostty", "kitty", "nvim", "tmux")
for dir in "${dirs[@]}"; do
echo "--- Setting up $dir ---"
# Remove old symlink if it exists
if [ -L "$CONFIG/$dir" ]; then
rm "$CONFIG/$dir"
echo "Removed old symlink at $CONFIG/$dir"
fi
# Backup existing directory if it exists
if [ -d "$CONFIG/$dir" ]; then
mv "$CONFIG/$dir" "$PANAMA_OLD/$dir"
echo "Moved existing $dir config to $PANAMA_OLD/$dir"
fi
# Create symlink
ln -s "$PANAMA_DOT/$dir" "$CONFIG/$dir"
echo "Linked $PANAMA_DOT/$dir → $CONFIG/$dir"
echo
done