修复 eza 图标不显示问题,--icons 改为 --icons=always
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -82,7 +82,7 @@ function ls --description 'alias ls to eza with directory `.tldr` descriptions'
|
|||||||
|
|
||||||
# 3. 动态描述注入核心引擎
|
# 3. 动态描述注入核心引擎
|
||||||
# 建立展示行:带颜色、带图标、全长格式 (-la 是你预期的默认行为)
|
# 建立展示行:带颜色、带图标、全长格式 (-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
|
# 必须保留你的自定义排序/过滤参数(如 --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)
|
if test (count $lines) -ne (count $paths)
|
||||||
$eza_bin -la --icons $argv
|
$eza_bin -la --icons=always $argv
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user