add fish config
This commit is contained in:
parent
cfa4947892
commit
3c55cbf688
1 changed files with 23 additions and 0 deletions
23
home/.config/fish/config.fish
Normal file
23
home/.config/fish/config.fish
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
source $XDG_CONFIG_HOME/sh/aliases.sh
|
||||
source $XDG_CONFIG_HOME/sh/path.sh
|
||||
|
||||
# Per-host config
|
||||
if test -r $XDG_CONFIG_HOME/sh/$HOSTNAME.sh
|
||||
source $XDG_CONFIG_HOME/sh/$HOSTNAME.sh
|
||||
end
|
||||
|
||||
if type -q atuin
|
||||
atuin init fish | source
|
||||
end
|
||||
|
||||
if type -q zoxide
|
||||
zoxide init fish | source
|
||||
alias cd=z
|
||||
end
|
||||
|
||||
if type -q direnv
|
||||
direnv hook fish | source
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue