|
Server IP : 161.35.85.9 / Your IP : 216.73.217.138 Web Server : nginx/1.30.1 System : Linux cheapdeb-ams3 7.0.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.9-1 (2026-05-22) x86_64 User : root ( 0) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/fish/functions/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
# localization: skip(private)
function __fish_theme_for_each
set -l callback $argv[1]
set -l theme_names $argv[2..]
for theme_name in (
set -l matching_names (__fish_theme_names $theme_names)
if not set -q theme_names[1]
echo default
echo default-rgb
string match -rv -- '^(default|default-rgb)$' $matching_names
else
string join -- \n $matching_names
end
)
set -l theme_data (__fish_theme_cat $theme_name)
set -l color_themes (string split -- \n $theme_data |
string replace -rf -- '^\[(dark|light|unknown)\]$' '$1')
if not set -q color_themes[1]
set color_themes unknown
end
$callback \
--name=$theme_name \
--data=$theme_data \
--color-themes=$color_themes
end
end