shell: bring direnv back, because mise cannot into command substitution
This commit is contained in:
parent
60958b6840
commit
6ac19899f4
4 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
[[ $- != *i* ]] && return
|
||||
|
||||
function testbin { whence $@ > /dev/null }
|
||||
|
||||
confdir=$HOME/.config/zsh
|
||||
conflist=(
|
||||
env.zsh
|
||||
|
|
Loading…
Reference in a new issue