From acfc1d2aff085691240be89eebf7cd624a6d11e3 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Fri, 8 Nov 2024 23:17:00 +0530 Subject: [PATCH 1/3] feat: Add zed editor -> developer tools --- .../applications-setup/Developer-tools/zed.sh | 52 +++++++++++++++++++ core/tabs/applications-setup/tab_data.toml | 6 +++ docs/userguide.md | 1 + 3 files changed, 59 insertions(+) create mode 100644 core/tabs/applications-setup/Developer-tools/zed.sh diff --git a/core/tabs/applications-setup/Developer-tools/zed.sh b/core/tabs/applications-setup/Developer-tools/zed.sh new file mode 100644 index 00000000..150d6214 --- /dev/null +++ b/core/tabs/applications-setup/Developer-tools/zed.sh @@ -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 diff --git a/core/tabs/applications-setup/tab_data.toml b/core/tabs/applications-setup/tab_data.toml index 4e6df84a..c6037480 100644 --- a/core/tabs/applications-setup/tab_data.toml +++ b/core/tabs/applications-setup/tab_data.toml @@ -107,6 +107,12 @@ description = "VSCodium is a free, open-source version of Visual Studio Code (VS script = "Developer-tools/vscodium-setup.sh" 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]] name = "Office Suites" diff --git a/docs/userguide.md b/docs/userguide.md index 11e598f8..0e55e96c 100644 --- a/docs/userguide.md +++ b/docs/userguide.md @@ -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. - **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. +- **Zed**: Zed is a next-generation code editor written in rust, designed for high-performance collaboration with humans and AI. ### Office Suites From 2abfc26348f5514e027e03fe8523095b00d918ef Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Fri, 8 Nov 2024 23:20:49 +0530 Subject: [PATCH 2/3] Rename dir Developer-tools -> developer-tools --- .../githubdesktop-setup.sh | 0 .../jetbrains-toolbox.sh | 0 .../meld-setup.sh | 0 .../neovim-setup.sh | 0 .../ngrok-setup.sh | 0 .../sublime-setup.sh | 0 .../vscode-setup.sh | 0 .../vscodium-setup.sh | 0 .../zed.sh | 0 core/tabs/applications-setup/tab_data.toml | 18 +++++++++--------- 10 files changed, 9 insertions(+), 9 deletions(-) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/githubdesktop-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/jetbrains-toolbox.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/meld-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/neovim-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/ngrok-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/sublime-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/vscode-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/vscodium-setup.sh (100%) rename core/tabs/applications-setup/{Developer-tools => developer-tools}/zed.sh (100%) diff --git a/core/tabs/applications-setup/Developer-tools/githubdesktop-setup.sh b/core/tabs/applications-setup/developer-tools/githubdesktop-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/githubdesktop-setup.sh rename to core/tabs/applications-setup/developer-tools/githubdesktop-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/jetbrains-toolbox.sh b/core/tabs/applications-setup/developer-tools/jetbrains-toolbox.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/jetbrains-toolbox.sh rename to core/tabs/applications-setup/developer-tools/jetbrains-toolbox.sh diff --git a/core/tabs/applications-setup/Developer-tools/meld-setup.sh b/core/tabs/applications-setup/developer-tools/meld-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/meld-setup.sh rename to core/tabs/applications-setup/developer-tools/meld-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/neovim-setup.sh b/core/tabs/applications-setup/developer-tools/neovim-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/neovim-setup.sh rename to core/tabs/applications-setup/developer-tools/neovim-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/ngrok-setup.sh b/core/tabs/applications-setup/developer-tools/ngrok-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/ngrok-setup.sh rename to core/tabs/applications-setup/developer-tools/ngrok-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/sublime-setup.sh b/core/tabs/applications-setup/developer-tools/sublime-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/sublime-setup.sh rename to core/tabs/applications-setup/developer-tools/sublime-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/vscode-setup.sh b/core/tabs/applications-setup/developer-tools/vscode-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/vscode-setup.sh rename to core/tabs/applications-setup/developer-tools/vscode-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/vscodium-setup.sh b/core/tabs/applications-setup/developer-tools/vscodium-setup.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/vscodium-setup.sh rename to core/tabs/applications-setup/developer-tools/vscodium-setup.sh diff --git a/core/tabs/applications-setup/Developer-tools/zed.sh b/core/tabs/applications-setup/developer-tools/zed.sh similarity index 100% rename from core/tabs/applications-setup/Developer-tools/zed.sh rename to core/tabs/applications-setup/developer-tools/zed.sh diff --git a/core/tabs/applications-setup/tab_data.toml b/core/tabs/applications-setup/tab_data.toml index c6037480..bce869ae 100644 --- a/core/tabs/applications-setup/tab_data.toml +++ b/core/tabs/applications-setup/tab_data.toml @@ -51,37 +51,37 @@ name = "Developer Tools" [[data.entries]] name = "Github Desktop" description = "GitHub Desktop is a user-friendly application that simplifies the process of managing Git repositories and interacting with GitHub, providing a graphical interface for tasks like committing, branching, and syncing changes." -script = "Developer-tools/githubdesktop-setup.sh" +script = "developer-tools/githubdesktop-setup.sh" task_list = "I" [[data.entries]] name = "JetBrains Toolbox" description = "JetBrains Toolbox is a collection of tools and an app that help developers work with JetBrains products." -script = "Developer-tools/jetbrains-toolbox.sh" +script = "developer-tools/jetbrains-toolbox.sh" task_list = "I" [[data.entries]] name = "Meld" description = "Meld is a visual diff and merge tool that helps compare files, directories, and version-controlled projects." -script = "Developer-tools/meld-setup.sh" +script = "developer-tools/meld-setup.sh" task_list = "I FI" [[data.entries]] name = "Neovim" description = "Neovim is a refactor, and sometimes redactor, in the tradition of Vim.\nIt is not a rewrite but a continuation and extension of Vim.\nThis command configures neovim from CTT's neovim configuration.\nhttps://github.com/ChrisTitusTech/neovim" -script = "Developer-tools/neovim-setup.sh" +script = "developer-tools/neovim-setup.sh" task_list = "I FM" [[data.entries]] name = "Ngrok" description = "Ngrok is a tool that creates secure, temporary tunnels to expose local servers to the internet for testing and development." -script = "Developer-tools/ngrok-setup.sh" +script = "developer-tools/ngrok-setup.sh" task_list = "I" [[data.entries]] name = "Sublime Text" description = "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." -script = "Developer-tools/sublime-setup.sh" +script = "developer-tools/sublime-setup.sh" task_list = "I" [[data.entries]] @@ -98,19 +98,19 @@ script = "communication-apps/zoom-setup.sh" [[data.entries]] name = "VS Code" description = "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." -script = "Developer-tools/vscode-setup.sh" +script = "developer-tools/vscode-setup.sh" task_list = "I" [[data.entries]] name = "VS Codium" description = "VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding." -script = "Developer-tools/vscodium-setup.sh" +script = "developer-tools/vscodium-setup.sh" 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" +script = "developer-tools/zed.sh" task_list = "I" [[data]] From 16785ca86cf01e612fc1f91bf0d844e4f4671341 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Fri, 8 Nov 2024 23:30:01 +0530 Subject: [PATCH 3/3] Rename files from application-setup.sh -> application.sh The purpose of all files inside the directory is to setup an application no need to mention it in the file name --- .../{githubdesktop-setup.sh => githubdesktop.sh} | 0 .../developer-tools/{meld-setup.sh => meld.sh} | 0 .../developer-tools/{neovim-setup.sh => neovim.sh} | 0 .../developer-tools/{ngrok-setup.sh => ngrok.sh} | 0 .../{sublime-setup.sh => sublime.sh} | 0 .../developer-tools/{vscode-setup.sh => vscode.sh} | 0 .../{vscodium-setup.sh => vscodium.sh} | 0 core/tabs/applications-setup/tab_data.toml | 14 +++++++------- 8 files changed, 7 insertions(+), 7 deletions(-) rename core/tabs/applications-setup/developer-tools/{githubdesktop-setup.sh => githubdesktop.sh} (100%) rename core/tabs/applications-setup/developer-tools/{meld-setup.sh => meld.sh} (100%) rename core/tabs/applications-setup/developer-tools/{neovim-setup.sh => neovim.sh} (100%) rename core/tabs/applications-setup/developer-tools/{ngrok-setup.sh => ngrok.sh} (100%) rename core/tabs/applications-setup/developer-tools/{sublime-setup.sh => sublime.sh} (100%) rename core/tabs/applications-setup/developer-tools/{vscode-setup.sh => vscode.sh} (100%) rename core/tabs/applications-setup/developer-tools/{vscodium-setup.sh => vscodium.sh} (100%) diff --git a/core/tabs/applications-setup/developer-tools/githubdesktop-setup.sh b/core/tabs/applications-setup/developer-tools/githubdesktop.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/githubdesktop-setup.sh rename to core/tabs/applications-setup/developer-tools/githubdesktop.sh diff --git a/core/tabs/applications-setup/developer-tools/meld-setup.sh b/core/tabs/applications-setup/developer-tools/meld.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/meld-setup.sh rename to core/tabs/applications-setup/developer-tools/meld.sh diff --git a/core/tabs/applications-setup/developer-tools/neovim-setup.sh b/core/tabs/applications-setup/developer-tools/neovim.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/neovim-setup.sh rename to core/tabs/applications-setup/developer-tools/neovim.sh diff --git a/core/tabs/applications-setup/developer-tools/ngrok-setup.sh b/core/tabs/applications-setup/developer-tools/ngrok.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/ngrok-setup.sh rename to core/tabs/applications-setup/developer-tools/ngrok.sh diff --git a/core/tabs/applications-setup/developer-tools/sublime-setup.sh b/core/tabs/applications-setup/developer-tools/sublime.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/sublime-setup.sh rename to core/tabs/applications-setup/developer-tools/sublime.sh diff --git a/core/tabs/applications-setup/developer-tools/vscode-setup.sh b/core/tabs/applications-setup/developer-tools/vscode.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/vscode-setup.sh rename to core/tabs/applications-setup/developer-tools/vscode.sh diff --git a/core/tabs/applications-setup/developer-tools/vscodium-setup.sh b/core/tabs/applications-setup/developer-tools/vscodium.sh similarity index 100% rename from core/tabs/applications-setup/developer-tools/vscodium-setup.sh rename to core/tabs/applications-setup/developer-tools/vscodium.sh diff --git a/core/tabs/applications-setup/tab_data.toml b/core/tabs/applications-setup/tab_data.toml index bce869ae..3d01ca5f 100644 --- a/core/tabs/applications-setup/tab_data.toml +++ b/core/tabs/applications-setup/tab_data.toml @@ -51,7 +51,7 @@ name = "Developer Tools" [[data.entries]] name = "Github Desktop" description = "GitHub Desktop is a user-friendly application that simplifies the process of managing Git repositories and interacting with GitHub, providing a graphical interface for tasks like committing, branching, and syncing changes." -script = "developer-tools/githubdesktop-setup.sh" +script = "developer-tools/githubdesktop.sh" task_list = "I" [[data.entries]] @@ -63,25 +63,25 @@ task_list = "I" [[data.entries]] name = "Meld" description = "Meld is a visual diff and merge tool that helps compare files, directories, and version-controlled projects." -script = "developer-tools/meld-setup.sh" +script = "developer-tools/meld.sh" task_list = "I FI" [[data.entries]] name = "Neovim" description = "Neovim is a refactor, and sometimes redactor, in the tradition of Vim.\nIt is not a rewrite but a continuation and extension of Vim.\nThis command configures neovim from CTT's neovim configuration.\nhttps://github.com/ChrisTitusTech/neovim" -script = "developer-tools/neovim-setup.sh" +script = "developer-tools/neovim.sh" task_list = "I FM" [[data.entries]] name = "Ngrok" description = "Ngrok is a tool that creates secure, temporary tunnels to expose local servers to the internet for testing and development." -script = "developer-tools/ngrok-setup.sh" +script = "developer-tools/ngrok.sh" task_list = "I" [[data.entries]] name = "Sublime Text" description = "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." -script = "developer-tools/sublime-setup.sh" +script = "developer-tools/sublime.sh" task_list = "I" [[data.entries]] @@ -98,13 +98,13 @@ script = "communication-apps/zoom-setup.sh" [[data.entries]] name = "VS Code" description = "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." -script = "developer-tools/vscode-setup.sh" +script = "developer-tools/vscode.sh" task_list = "I" [[data.entries]] name = "VS Codium" description = "VSCodium is a free, open-source version of Visual Studio Code (VS Code) that removes Microsoft-specific telemetry and branding." -script = "developer-tools/vscodium-setup.sh" +script = "developer-tools/vscodium.sh" task_list = "I" [[data.entries]]