18 lines
458 B
Bash
Executable File
18 lines
458 B
Bash
Executable File
#!/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"
|
|
fi
|
|
fi
|
|
fi
|