From c5fd7424700ae65c2781f15dd1bfba688efdb1b8 Mon Sep 17 00:00:00 2001 From: FlintyLemming Date: Wed, 24 Jun 2026 13:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20eza=20=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C--icons?= =?UTF-8?q?=20=E6=94=B9=E4=B8=BA=20--icons=3Dalways?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 --- fish/add-on.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/add-on.fish b/fish/add-on.fish index 84b6a04..afc4ea1 100644 --- a/fish/add-on.fish +++ b/fish/add-on.fish @@ -82,7 +82,7 @@ function ls --description 'alias ls to eza with directory `.tldr` descriptions' # 3. 动态描述注入核心引擎 # 建立展示行:带颜色、带图标、全长格式 (-la 是你预期的默认行为) - set -l lines ($eza_bin -la --icons --color=always $argv) + set -l lines ($eza_bin -la --icons=always --color=always $argv) # 建立纯净路径行:过滤掉所有格式化干扰项,确保只拿到绝对路径 # 必须保留你的自定义排序/过滤参数(如 --sort),但剔除 -l 和 --icons @@ -107,7 +107,7 @@ function ls --description 'alias ls to eza with directory `.tldr` descriptions' # 安全网:如果由于特殊参数导致行数不匹配,安全回退到原装输出防止错位 if test (count $lines) -ne (count $paths) - $eza_bin -la --icons $argv + $eza_bin -la --icons=always $argv return end