refactor(config): migrate C1 aliases call sites to self-identifying guard
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# Copyright (C) 2026 Rootiest
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#
|
||||
# GENERATED FILE --- do not edit by hand.
|
||||
# Regenerate with __fish_config_op_registry_rebuild after editing a
|
||||
# # COMPONENT header, or automatically via docs/build-manual.py.
|
||||
# Source: docs/generate_component_registry.py
|
||||
|
||||
set -g __fish_config_op_registry_keys \
|
||||
agy: \
|
||||
bash: \
|
||||
cat: \
|
||||
claude: \
|
||||
du: \
|
||||
edit: \
|
||||
help: \
|
||||
less: \
|
||||
ls: \
|
||||
mkdir: \
|
||||
mv: \
|
||||
ping: \
|
||||
rg: \
|
||||
rm: \
|
||||
ssh: \
|
||||
top: \
|
||||
yt-dlp: \
|
||||
zoxide:
|
||||
|
||||
set -g __fish_config_op_registry_values \
|
||||
"aliases/dev-tools" \
|
||||
"aliases/shell-tools" \
|
||||
"aliases/filesystem" \
|
||||
"aliases/dev-tools" \
|
||||
"aliases/filesystem" \
|
||||
"aliases/dev-tools" \
|
||||
"aliases/shell-tools" \
|
||||
"aliases/shell-tools" \
|
||||
"aliases/filesystem" \
|
||||
"aliases/filesystem" \
|
||||
"aliases/filesystem" \
|
||||
"aliases/network" \
|
||||
"aliases/search" \
|
||||
"aliases/filesystem" \
|
||||
"aliases/network" \
|
||||
"aliases/monitor" \
|
||||
"aliases/network" \
|
||||
"aliases/filesystem"
|
||||
|
||||
+4
-1
@@ -5,6 +5,9 @@
|
||||
# │ help config wrapper │
|
||||
# ╰──────────────────────────────────────────────────────────╯
|
||||
#
|
||||
# COMPONENT
|
||||
# aliases/shell-tools
|
||||
#
|
||||
# SYNOPSIS
|
||||
# help [topic] [sub-topic...]
|
||||
# help config [section] [-w|--html] [-m|--man] [-h|--help]
|
||||
@@ -50,7 +53,7 @@ end
|
||||
# --- Wrapper Definition ---
|
||||
function help --wraps help --description "Custom wrapper to intercept 'help config'"
|
||||
# Opinionated guard (C1): fall back to the native fish help when disabled.
|
||||
if not __fish_config_op_enabled __fish_config_op_aliases
|
||||
if not __fish_config_op_enabled (status current-function)
|
||||
__original_help $argv
|
||||
return $status
|
||||
end
|
||||
|
||||
+4
-1
@@ -3,6 +3,9 @@
|
||||
# Adapted from icezyclon/zoxide.fish (MIT)
|
||||
# Heavily customized for Fish 4.x compatibility and performance
|
||||
|
||||
# COMPONENT
|
||||
# aliases/filesystem
|
||||
|
||||
if status is-interactive
|
||||
|
||||
if type -q zoxide
|
||||
@@ -65,7 +68,7 @@ if status is-interactive
|
||||
|
||||
# Shadowing cd with zoxide is opinionated (C1 aliasing); z and zi
|
||||
# remain available either way.
|
||||
if __fish_config_op_enabled __fish_config_op_aliases
|
||||
if __fish_config_op_enabled (status basename)
|
||||
alias cd=z
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user