Add Zed install dialog

This commit is contained in:
2024-07-11 10:21:36 +01:00
parent 3bab42a4f2
commit 580c2b8754

View File

@@ -65,11 +65,11 @@ for selection in $main_menu; do
echo echo
echo echo
# Neovim # Neovim
dialog --erase-on-exit \ dialog --erase-on-exit \
--backtitle "$BACKTITLE" \ --backtitle "$BACKTITLE" \
--title "Install/Update Neovim?" \ --title "Install/Update Neovim?" \
--yesno "Nvim will be compiled from source. This may take a long time, depending on your device. If unsure, select yes." 10 40 --yesno "Nvim will be compiled from source. This may take a long time, depending on your device." 10 40
if [ "$?" -eq 0 ]; then if [ "$?" -eq 0 ]; then
# NVIM has to be compiled from source to support arm64 and i386 devices, for example. # NVIM has to be compiled from source to support arm64 and i386 devices, for example.
@@ -83,6 +83,16 @@ for selection in $main_menu; do
rm -rf neovim rm -rf neovim
fi fi
# Zed
dialog --erase-on-exit \
--backtitle "$BACKTITLE" \
--title "Install Zed?" \
--yesno "Zed (code editor) will be installed using the official install script." 10 40
if [ "$?" -eq 0 ]; then
curl https://zed.dev/install.sh | sh
fi
echo "Installing utilities..." echo "Installing utilities..."
sudo apt install -y htop fzf git wget curl bash-completion sudo apt install -y htop fzf git wget curl bash-completion