.zshrc install
This commit is contained in:
35
install.sh
35
install.sh
@@ -138,21 +138,6 @@ else
|
||||
echo "JetBrains Mono Nerd Font already installed, skipping."
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Configure shell
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
echo ""
|
||||
echo "Configuring zsh..."
|
||||
|
||||
# Ensure starship is initialized in .zshrc
|
||||
if ! grep -q 'eval "$(starship init zsh)"' "$HOME/.zshrc" 2>/dev/null; then
|
||||
echo 'eval "$(starship init zsh)"' >> "$HOME/.zshrc"
|
||||
echo " Added starship initialization to ~/.zshrc"
|
||||
else
|
||||
echo " Starship already configured in ~/.zshrc"
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Stow all packages
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -199,4 +184,24 @@ for PACKAGE in "$DOTFILES_DIR"/*/; do
|
||||
stow --dir="$DOTFILES_DIR" --target="$HOME" --restow "$PACKAGE"
|
||||
done
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Configure shell
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
echo ""
|
||||
echo "Configuring zsh..."
|
||||
|
||||
# Ensure .zshrc exists
|
||||
if [[ ! -f "$HOME/.zshrc" ]]; then
|
||||
touch "$HOME/.zshrc"
|
||||
fi
|
||||
|
||||
# Ensure starship is initialized in .zshrc
|
||||
if ! grep -q 'eval "$(starship init zsh)"' "$HOME/.zshrc"; then
|
||||
echo 'eval "$(starship init zsh)"' >> "$HOME/.zshrc"
|
||||
echo " Added starship initialization to ~/.zshrc"
|
||||
else
|
||||
echo " Starship already configured in ~/.zshrc"
|
||||
fi
|
||||
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user