enable direnv in bash and fix it for fish
This commit is contained in:
parent
f350403320
commit
3a31a8427c
5
.bashrc
5
.bashrc
|
@ -101,3 +101,8 @@ if command -v nvim > /dev/null; then
|
|||
fi
|
||||
|
||||
PS1='[\u@\h \W]\$ '
|
||||
|
||||
# for direnv (should always be at the end)
|
||||
if command -v direnv > /dev/null; then
|
||||
eval "$(direnv hook bash)"
|
||||
fi
|
||||
|
|
|
@ -47,12 +47,6 @@ if status is-interactive
|
|||
set fish_greeting # disable the "new user" prompt
|
||||
initial_fish_setup # call all "setup functions" here
|
||||
|
||||
# for direnv
|
||||
if command -v direnv > /dev/null
|
||||
set -g direnv_fish_mode disable_arrow
|
||||
direnv hook fish | source
|
||||
end
|
||||
|
||||
# git prompt options
|
||||
# these are not in '/etc/nixos/configuration.nix' for following reasons
|
||||
# - I use fish on macOS
|
||||
|
@ -159,6 +153,12 @@ if status is-interactive
|
|||
alias vvim="$(command -v vim)"
|
||||
alias vim="$(command -v nvim)"
|
||||
end
|
||||
|
||||
# for direnv (should always be at the end)
|
||||
if command -v direnv > /dev/null
|
||||
set -g direnv_fish_mode disable_arrow
|
||||
direnv hook fish | source
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue