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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if command -q direnv
|
||||||
|
direnv hook fish | source
|
||||||
|
end
|
||||||
|
|
||||||
if command -q mise
|
if command -q mise
|
||||||
mise activate fish | source
|
mise activate fish | source
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# Fuck default aliases
|
# Fuck default aliases
|
||||||
unalias -a
|
unalias -a
|
||||||
|
|
||||||
function testbin { whence $@ > /dev/null }
|
|
||||||
|
|
||||||
function termcompat {
|
function termcompat {
|
||||||
typeset term=$TERM
|
typeset term=$TERM
|
||||||
case $term in
|
case $term in
|
||||||
|
@ -99,7 +97,3 @@ if testbin grc; then
|
||||||
done
|
done
|
||||||
unset cmds cmd
|
unset cmds cmd
|
||||||
fi
|
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}
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
|
||||||
unalias ld ls ll &>/dev/null
|
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
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
function testbin { whence $@ > /dev/null }
|
||||||
|
|
||||||
confdir=$HOME/.config/zsh
|
confdir=$HOME/.config/zsh
|
||||||
conflist=(
|
conflist=(
|
||||||
env.zsh
|
env.zsh
|
||||||
|
|
Loading…
Reference in a new issue