Files
land/packages/install-zsh.sh
T

19 lines
487 B
Bash
Raw Normal View History

2026-05-14 18:21:18 +03:00
#!/bin/sh
install_package "zsh"
install_package "zsh-completions"
install_package "zsh-autosuggestions"
install_package "zsh-syntax-highlighting"
if [ $(command -v zsh) >/dev/null 2>&1 ]; then
if [ $(basename $SHELL) != "zsh" ]; then
if ! error=$(sudo chsh -s /usr/bin/zsh $USER 2>&1); then
gum style --foreground 9 "✗ failed to change shell to zsh: $error"
else
gum style --foreground 15 "✓ changed shell to zsh"
sudo touch /tmp/reboot
fi
fi
fi