mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
feat: Add zed editor -> developer tools
This commit is contained in:
parent
8639da3855
commit
acfc1d2aff
52
core/tabs/applications-setup/Developer-tools/zed.sh
Normal file
52
core/tabs/applications-setup/Developer-tools/zed.sh
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
. ../../common-script.sh
|
||||||
|
|
||||||
|
installZed() {
|
||||||
|
if ! command_exists dev.zed.Zed && ! command_exists zed && ! command_exists zeditor; then
|
||||||
|
printf "%b\n" "${CYAN}Installing Zed.${RC}"
|
||||||
|
case "$PACKAGER" in
|
||||||
|
apk)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" add zed
|
||||||
|
;;
|
||||||
|
pacman)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" -S zed
|
||||||
|
;;
|
||||||
|
zypper)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" addrepo -f https://download.opensuse.org/repositories/editors/openSUSE_Tumbleweed/editors.repo
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" install -y zed
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%b\n" "${YELLOW}No official package found for package manager $PACKAGER. Do you want to install flathub package or from source?${RC}"
|
||||||
|
printf "%b\n" "1) Flathub package"
|
||||||
|
printf "%b\n" "2) Source"
|
||||||
|
printf "%b\n" "3) Exit"
|
||||||
|
printf "%b" "Choose an option: "
|
||||||
|
read -r choice
|
||||||
|
case "$choice" in
|
||||||
|
1)
|
||||||
|
checkFlatpak
|
||||||
|
flatpak install -y flathub dev.zed.Zed
|
||||||
|
;;
|
||||||
|
2)
|
||||||
|
curl -f https://zed.dev/install.sh | sh
|
||||||
|
;;
|
||||||
|
3)
|
||||||
|
printf "%b\n" "${GREEN}Exiting.${RC}"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%b\n" "${RED}Invalid option.${RC}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
printf "%b\n" "${GREEN}Zed is already installed.${RC}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEnv
|
||||||
|
clear
|
||||||
|
installZed
|
|
@ -107,6 +107,12 @@ description = "VSCodium is a free, open-source version of Visual Studio Code (VS
|
||||||
script = "Developer-tools/vscodium-setup.sh"
|
script = "Developer-tools/vscodium-setup.sh"
|
||||||
task_list = "I"
|
task_list = "I"
|
||||||
|
|
||||||
|
[[data.entries]]
|
||||||
|
name = "Zed"
|
||||||
|
description = "Zed is a next-generation code editor written in rust, designed for high-performance collaboration with humans and AI."
|
||||||
|
script = "Developer-tools/zed.sh"
|
||||||
|
task_list = "I"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Office Suites"
|
name = "Office Suites"
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@ https://github.com/ChrisTitusTech/neovim
|
||||||
- **Sublime Text**: Sublime Text is a fast, lightweight, and customizable text editor known for its simplicity, powerful features, and wide range of plugins for various programming languages.
|
- **Sublime Text**: Sublime Text is a fast, lightweight, and customizable text editor known for its simplicity, powerful features, and wide range of plugins for various programming languages.
|
||||||
- **VS Code**: Visual Studio Code (VS Code) is a lightweight, open-source code editor with built-in support for debugging, version control, and extensions for various programming languages and frameworks.
|
- **VS Code**: Visual Studio Code (VS Code) is a lightweight, open-source code editor with built-in support for debugging, version control, and extensions for various programming languages and frameworks.
|
||||||
- **VS Codium**: VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding.
|
- **VS Codium**: VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding.
|
||||||
|
- **Zed**: Zed is a next-generation code editor written in rust, designed for high-performance collaboration with humans and AI.
|
||||||
|
|
||||||
### Office Suites
|
### Office Suites
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user