1
0
Fork 0

shell: bring direnv back, because mise cannot into command substitution

This commit is contained in:
Von Random 2025-02-19 01:18:33 +02:00
parent 60958b6840
commit 6ac19899f4
4 changed files with 14 additions and 6 deletions

View file

@ -20,6 +20,10 @@ if status is-interactive
end
end
if command -q direnv
direnv hook fish | source
end
if command -q mise
mise activate fish | source
end

View file

@ -1,8 +1,6 @@
# Fuck default aliases
unalias -a
function testbin { whence $@ > /dev/null }
function termcompat {
typeset term=$TERM
case $term in
@ -99,7 +97,3 @@ if testbin grc; then
done
unset cmds cmd
fi
if testbin mise; then
eval "$(mise activate zsh)"
fi

View file

@ -43,3 +43,11 @@ zstyle ':completion:*:processes-names' command 'ps axho command'
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
unalias ld ls ll &>/dev/null
if testbin direnv; then
eval "$(direnv hook zsh)"
fi
if testbin mise; then
eval "$(mise activate zsh)"
fi

View file

@ -1,5 +1,7 @@
[[ $- != *i* ]] && return
function testbin { whence $@ > /dev/null }
confdir=$HOME/.config/zsh
conflist=(
env.zsh