调整 fish 配置
This commit is contained in:
@@ -1,19 +1,21 @@
|
|||||||
if status is-interactive
|
if status is-interactive
|
||||||
# Commands to run in interactive sessions can go here
|
# Abbreviations (only when target commands exist)
|
||||||
|
if type -q eza
|
||||||
|
abbr ls eza
|
||||||
|
else if type -q exa
|
||||||
|
abbr ls exa
|
||||||
end
|
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
|
||||||
|
|
||||||
# Aliases
|
type -q thefuck; and thefuck --alias | source
|
||||||
alias ls=exa
|
|
||||||
alias cat=bat
|
|
||||||
alias cap='cat -p'
|
|
||||||
alias find=fd
|
|
||||||
alias grep=rg
|
|
||||||
alias top=btop
|
|
||||||
alias help=tldr
|
|
||||||
abbr cz chezmoi
|
|
||||||
|
|
||||||
thefuck --alias | source
|
type -q zoxide; and zoxide init --cmd=cd fish | source
|
||||||
|
|
||||||
zoxide init fish | source
|
type -q fastfetch; and fastfetch
|
||||||
|
end
|
||||||
fastfetch
|
|
||||||
|
|||||||
Reference in New Issue
Block a user