add basic first time installation
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user