refactor(config): migrate C1 aliases call sites to self-identifying guard
This commit is contained in:
+4
-1
@@ -4,6 +4,9 @@
|
||||
# CATEGORY
|
||||
# 01-file-and-directory
|
||||
#
|
||||
# COMPONENT
|
||||
# aliases/filesystem
|
||||
#
|
||||
# SYNOPSIS
|
||||
# rm [-e [options] | -S | args...]
|
||||
#
|
||||
@@ -38,7 +41,7 @@
|
||||
# Falls back to /usr/bin/rm when trash is unavailable.
|
||||
function rm --description 'Ultimate rm: trash, list, empty, and secure-erase'
|
||||
# Opinionated guard (C1): fall back to bare command rm when disabled.
|
||||
if not __fish_config_op_enabled __fish_config_op_aliases
|
||||
if not __fish_config_op_enabled (status current-function)
|
||||
command rm $argv
|
||||
return $status
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user