add fish config
This commit is contained in:
@@ -14,30 +14,6 @@ function fish_greeting
|
||||
set_color normal
|
||||
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)
|
||||
set -l pm_name ""
|
||||
if type -q oma
|
||||
|
||||
Reference in New Issue
Block a user