feat: initial fish shell configuration
- 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
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user