4c1e7a7eb9
- Core config layered on CachyOS base with Catppuccin Mocha theming - Fisher plugins: fzf.fish, catppuccin, autopair, replay, puffer-fish, magic-enter, spark - Smart CLI wrappers with fallbacks (bat, lsd, btop, dust, prettyping) - Custom functions: git, docker, network, kitty, AI session management - Extensive abbreviation system for keyboard-driven workflows - Secrets/local sourcing pattern for private and machine-specific config - README with full documentation and personalization guide - AGPLv3+ license with copyright headers on all source files
50 lines
1.3 KiB
Fish
50 lines
1.3 KiB
Fish
# Copyright (C) 2026 Rootiest
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
function superpowers --description "Toggle superpowers extension for Gemini and Claude"
|
|
set -l scope_gemini workspace
|
|
set -l scope_claude project
|
|
set -l mode ""
|
|
set -l help_text "
|
|
Usage: superpowers [on|off] [options]
|
|
|
|
Commands:
|
|
on Enable superpowers for Gemini and Claude
|
|
off Disable superpowers for Gemini and Claude
|
|
|
|
Options:
|
|
-g, --global Apply settings to the user/global scope
|
|
-h, --help Show this help message
|
|
"
|
|
|
|
# Parse arguments
|
|
for arg in $argv
|
|
switch $arg
|
|
case on
|
|
set mode enable
|
|
case off
|
|
set mode disable
|
|
case -g --global
|
|
set scope_gemini user
|
|
set scope_claude user
|
|
case -h --help
|
|
echo $help_text
|
|
return 0
|
|
end
|
|
end
|
|
|
|
# Handle no arguments or invalid mode
|
|
if test -z "$mode"
|
|
echo $help_text
|
|
return 1
|
|
end
|
|
|
|
echo "Setting superpowers to: $mode (Scope: Gemini=$scope_gemini, Claude=$scope_claude)..."
|
|
|
|
# Execute Gemini command
|
|
gemini extensions $mode superpowers --scope $scope_gemini
|
|
|
|
# Execute Claude command
|
|
claude plugins $mode superpowers --scope $scope_claude
|
|
end
|