diff --git a/p3/app/icons/ohmybash.png b/p3/app/icons/ohmybash.png new file mode 100644 index 00000000..55235fe1 Binary files /dev/null and b/p3/app/icons/ohmybash.png differ diff --git a/p3/scripts/devs/ohmyba.sh b/p3/scripts/devs/ohmyba.sh new file mode 100644 index 00000000..2348c3dc --- /dev/null +++ b/p3/scripts/devs/ohmyba.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# name: Oh My Bash +# version: 1.0 +# description: Framework for managing your bash configuration. +# icon: ohmybash.png + +# --- Start of the script code --- +source "$SCRIPT_DIR/libs/linuxtoys.lib" +source "$SCRIPT_DIR/libs/helpers.lib" +_lang_ +source "$SCRIPT_DIR/libs/lang/${langfile}.lib" + +_OSH=${OSH:-~/.oh-my-bash} +[ -d ${_OSH} ] && { + zenity --question \ + --title "You already have Oh My Bash installed." \ + --text "Would you like to uninstall?" \ + --width 360 --height 300 && { + yes | "${_OSH}"/tools/uninstall.sh && { zeninf "$msg018"; } + } + exit 0; +} + +bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" --unattended && { zeninf "$msg018"; } || { fatal "Installation failure"; }