add fish config

This commit is contained in:
FlintyLemming
2025-12-19 21:11:03 +08:00
parent ca6dd33612
commit 355f98d55e

View File

@@ -14,30 +14,6 @@ function fish_greeting
set_color normal set_color normal
echo "" echo ""
# 2. 系统与硬件信息 (仅文字,无 Logo)
if type -q fastfetch
# --logo none 隐藏左侧图标
# --structure OS:CPU:GPU:Memory:Disk 仅显示指定项
fastfetch --logo none \
--structure OS:CPU:GPU:Memory:Disk \
--color cyan
else if type -q neofetch
# --off 禁用 Logo
neofetch --off \
--disable underline title separator \
--os_arch off \
--cpu_temp off \
--gpu_type all \
--mem_unit mib \
--os --cpu --memory --disk --gpu
else
set_color yellow
echo "⚠️ fastfetch/neofetch not found. Please install one for system info."
set_color normal
end
echo ""
# 3. 包管理器逻辑 (优先检查 oma) # 3. 包管理器逻辑 (优先检查 oma)
set -l pm_name "" set -l pm_name ""
if type -q oma if type -q oma