diff --git a/scripts/applications-setup/tab_data.toml b/scripts/applications-setup/tab_data.toml index e32b540..93f4bdb 100644 --- a/scripts/applications-setup/tab_data.toml +++ b/scripts/applications-setup/tab_data.toml @@ -139,6 +139,14 @@ name = "Kitty" description = "kitty is a free and open-source GPU-accelerated terminal emulator for Linux, macOS, and some BSD distributions, focused on performance and features. kitty is written in a mix of C and Python programming languages. This command installs and configures kitty." script = "kitty-setup.sh" +[[data]] +name = "Utilities" + +[[data.entries]] +name = "AppCleaner" +description = "AppCleaner is a small application which allows you to thoroughly uninstall unwanted apps." +script = "utilities/appcleaner-setup.sh" + [[data]] name = "ZSH Prompt" description = "The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. This command installs ZSH prompt and provides basic configuration." diff --git a/scripts/applications-setup/utilities/appcleaner-setup.sh b/scripts/applications-setup/utilities/appcleaner-setup.sh new file mode 100644 index 0000000..301f489 --- /dev/null +++ b/scripts/applications-setup/utilities/appcleaner-setup.sh @@ -0,0 +1,20 @@ +#!/bin/sh -e + +. ../../common-script.sh + +install_appcleaner() { + if ! brewprogram_exists appcleaner; then + printf "%b\n" "${YELLOW}Installing AppCleaner...${RC}" + brew install --cask appcleaner + if [ $? -ne 0 ]; then + printf "%b\n" "${RED}Failed to install AppCleaner. Please check your Homebrew installation or try again later.${RC}" + exit 1 + fi + printf "%b\n" "${GREEN}AppCleaner installed successfully!${RC}" + else + printf "%b\n" "${GREEN}AppCleaner is already installed.${RC}" + fi +} + +checkEnv +install_appcleaner