Add more stuff
This commit is contained in:
@@ -8,6 +8,9 @@ exists() { command -v "$1" >/dev/null 2>&1; }
|
||||
PANAMA_PATH="$HOME/.local/share/Panama"
|
||||
|
||||
echo -e "\n--- Installing relevant packages ---\n"
|
||||
# --- Update all packages ---
|
||||
log "Updating all packages..."
|
||||
sudo dnf update -y --refresh > /dev/null 2>&1
|
||||
|
||||
# --- Install all initial packages ---
|
||||
PACKAGES_FILE="$PANAMA_PATH/setup/packages/initial-packages"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user