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:
parent
d078b78b69
commit
b6a398d649
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue