refactor: use __fish_palette in small utility functions (1/2)

37 duplicated declarations replaced by 8 calls. Output strings untouched;
byte-identical across 29 harness cases.
This commit is contained in:
2026-09-07 20:06:20 -04:00
parent b0c6d7f7f5
commit f3f6e6356b
8 changed files with 8 additions and 37 deletions
+1 -5
View File
@@ -41,11 +41,7 @@
# NOTES
# Typo abbreviation: url-open (expands to open-url on space/enter).
function open-url --description 'Open a URL in the best available web browser'
set -l c_head (set_color --bold cyan)
set -l c_cmd (set_color --bold)
set -l c_flag (set_color yellow)
set -l c_arg (set_color cyan)
set -l c_reset (set_color normal)
__fish_palette
argparse h/help s/silent v/verbose -- $argv
or return 1