Files
dotfiles/dot_config/fish/config.fish
2026-03-23 01:01:35 +08:00

22 lines
574 B
Fish

if status is-interactive
# Abbreviations (only when target commands exist)
if type -q eza
abbr ls eza
else if type -q exa
abbr ls exa
end
type -q bat; and abbr cat bat
type -q bat; and abbr cap bat -p
type -q fd; and abbr find fd
type -q rg; and abbr grep rg
type -q btop; and abbr top btop
type -q tldr; and abbr help tldr
type -q chezmoi; and abbr cz chezmoi
type -q thefuck; and thefuck --alias | source
type -q zoxide; and zoxide init --cmd=cd fish | source
type -q fastfetch; and fastfetch
end