flocon/home/.config/fish/config.fish
Romain Paquet b6a398d649 fish: move host configs to per-host dir
Also alias ls to eza if available and define XDG_CONFIG_HOME
2026-03-24 14:59:01 +01:00

29 lines
613 B
Fish

set -Ux XDG_CONFIG_HOME $HOME/.config
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/per-host/$hostname.sh
source $XDG_CONFIG_HOME/sh/per-host/$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
if type -q eza
alias ls=eza
end
end