fish: move host configs to per-host dir

Also alias ls to eza if available and define XDG_CONFIG_HOME
This commit is contained in:
Romain Paquet 2026-03-24 14:58:34 +01:00
parent d078b78b69
commit b6a398d649

View file

@ -1,11 +1,13 @@
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/$HOSTNAME.sh
source $XDG_CONFIG_HOME/sh/$HOSTNAME.sh
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
@ -20,4 +22,8 @@ if status is-interactive
if type -q direnv
direnv hook fish | source
end
if type -q eza
alias ls=eza
end
end