refactor(config): migrate C4 integrations call sites to self-identifying guard

This commit is contained in:
2026-08-17 21:49:45 -04:00
parent a981fa7f0a
commit 516b2ba26c
8 changed files with 42 additions and 7 deletions
+14
View File
@@ -16,12 +16,15 @@ set -g __fish_config_op_registry_keys \
bash_expands: \
cat: \
claude: \
done: \
du: \
edit: \
fish_right_prompt: \
help: \
hist: \
key_bindings: \
less: \
logs: \
ls: \
mkdir: \
mv: \
@@ -29,10 +32,14 @@ set -g __fish_config_op_registry_keys \
puffer: \
rg: \
rm: \
split: \
spwin: \
ssh: \
starship: \
tab: \
theme: \
top: \
upgrade: \
yt-dlp: \
zoxide:
@@ -46,12 +53,15 @@ set -g __fish_config_op_registry_values \
"overrides/key-bindings" \
"aliases/filesystem" \
"aliases/dev-tools" \
"integrations/notifications" \
"aliases/filesystem" \
"aliases/dev-tools" \
"overrides/prompt" \
"aliases/shell-tools" \
"integrations/history-logs" \
"overrides/key-bindings" \
"aliases/shell-tools" \
"integrations/history-logs" \
"aliases/filesystem" \
"aliases/filesystem" \
"aliases/filesystem" \
@@ -59,10 +69,14 @@ set -g __fish_config_op_registry_values \
"overrides/key-bindings" \
"aliases/search" \
"aliases/filesystem" \
"integrations/window-mgmt" \
"integrations/window-mgmt" \
"aliases/network" \
"overrides/prompt" \
"integrations/window-mgmt" \
"overrides/prompt" \
"aliases/monitor" \
"integrations/pkg-upgrade" \
"aliases/network" \
"aliases/filesystem"
+4 -1
View File
@@ -19,6 +19,9 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# COMPONENT
# integrations/notifications
if not status is-interactive
exit
@@ -26,7 +29,7 @@ end
# Local modification: opinionated guard (AGENTS.md Task #3). Desktop
# notifications assume a graphical session, classified as C4 integrations.
__fish_config_op_enabled __fish_config_op_integrations; or exit
__fish_config_op_enabled (status basename); or exit
set -g __done_version 1.19.1
+4 -1
View File
@@ -4,6 +4,9 @@
# CATEGORY
# 04-git-and-version-control
#
# COMPONENT
# integrations/history-logs
#
# SYNOPSIS
# hist
#
@@ -15,7 +18,7 @@
# hist
function hist --description 'Search fish history and put it in the prompt'
# Opinionated guard (C4): integrations disabled
if not __fish_config_op_enabled __fish_config_op_integrations
if not __fish_config_op_enabled (status current-function)
set -l c_err (set_color red)
set -l c_reset (set_color normal)
echo "$c_err"'hist: disabled by __fish_config_op_integrations'"$c_reset" >&2
+4 -1
View File
@@ -4,6 +4,9 @@
# CATEGORY
# 11-pager-and-logging
#
# COMPONENT
# integrations/history-logs
#
# SYNOPSIS
# logs [-h] [-c <category>]
#
@@ -35,7 +38,7 @@
# logs -c scrollback
function logs --description 'Browse terminal log files interactively with fzf'
# Opinionated guard (C4): integrations disabled
if not __fish_config_op_enabled __fish_config_op_integrations
if not __fish_config_op_enabled (status current-function)
set -l c_err (set_color red)
set -l c_reset (set_color normal)
echo "$c_err"'logs: disabled by __fish_config_op_integrations'"$c_reset" >&2
+4 -1
View File
@@ -4,6 +4,9 @@
# CATEGORY
# 08-terminal-management
#
# COMPONENT
# integrations/window-mgmt
#
# SYNOPSIS
# split [-h | -v] [command...]
#
@@ -27,7 +30,7 @@
# split -v nvim README.md
function split --description 'Run a command in a new terminal split'
# Opinionated guard (C4): integrations disabled
if not __fish_config_op_enabled __fish_config_op_integrations
if not __fish_config_op_enabled (status current-function)
set -l c_err (set_color red)
set -l c_reset (set_color normal)
echo "$c_err"'split: disabled by __fish_config_op_integrations'"$c_reset" >&2
+4 -1
View File
@@ -4,6 +4,9 @@
# CATEGORY
# 08-terminal-management
#
# COMPONENT
# integrations/window-mgmt
#
# SYNOPSIS
# spwin [args...]
#
@@ -22,7 +25,7 @@
# spwin
function spwin --wraps='~/.config/kitty/spawn-window.sh' --description 'spawn window in kitty or wezterm'
# Opinionated guard (C4): integrations disabled
if not __fish_config_op_enabled __fish_config_op_integrations
if not __fish_config_op_enabled (status current-function)
set -l c_err (set_color red)
set -l c_reset (set_color normal)
echo "$c_err"'spwin: disabled by __fish_config_op_integrations'"$c_reset" >&2
+4 -1
View File
@@ -4,6 +4,9 @@
# CATEGORY
# 08-terminal-management
#
# COMPONENT
# integrations/window-mgmt
#
# SYNOPSIS
# tab [args...]
#
@@ -23,7 +26,7 @@
# tab
function tab --description 'Spawn a new tab in the current terminal'
# Opinionated guard (C4): integrations disabled
if not __fish_config_op_enabled __fish_config_op_integrations
if not __fish_config_op_enabled (status current-function)
set -l c_err (set_color red)
set -l c_reset (set_color normal)
echo "$c_err"'tab: disabled by __fish_config_op_integrations'"$c_reset" >&2
+4 -1
View File
@@ -4,6 +4,9 @@
# CATEGORY
# 05-package-management
#
# COMPONENT
# integrations/pkg-upgrade
#
# SYNOPSIS
# upgrade
#
@@ -19,7 +22,7 @@
# upgrade
function upgrade --description 'Full system upgrade via paru or yay'
# Opinionated guard (C4): integrations disabled
if not __fish_config_op_enabled __fish_config_op_integrations
if not __fish_config_op_enabled (status current-function)
set -l c_err (set_color red)
set -l c_reset (set_color normal)
echo "$c_err"'upgrade: disabled by __fish_config_op_integrations'"$c_reset" >&2