Files
omarchycn/bin/omarchy-plugin-disable
David Heinemeier HanssonandGitHub f8835df644 Plugin cloning via menu (#6433)
* Add plugin cloning via menu

* Split plugin commands by action

* Keep plugin enablement in action commands

* Remove unused plugin edit command

* Simplify plugin rescan arguments

* Assume Omarchy shell is running for plugin commands

* Remove plugin compatibility dispatcher

* Flatten plugin clone command

* Keep only shared plugin helpers

* Remove plugin rescan wrapper

* Keep plugin commands self-contained

* Simplify plugin clone lifecycle
2026-07-29 21:34:47 -04:00

27 lines
525 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Disable a shell plugin
# omarchy:group=plugin
# omarchy:args=<id>
set -euo pipefail
fail() {
echo "omarchy-plugin-disable: $*" >&2
exit 1
}
if [[ ${1:-} == "-h" || ${1:-} == "--help" ]]; then
echo "Usage: omarchy plugin disable <id>"
exit 0
fi
id="${1:-}"
[[ -n $id ]] || fail "plugin id is required"
result=$(omarchy-shell shell setPluginEnabled "$id" false)
[[ $result == "ok" ]] ||
fail "plugin '$id' is not known; run: omarchy-shell shell rescanPlugins"
echo "Disabled $id"