mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Use any direnv (not just nix)
This commit is contained in:
parent
fefe99ae9f
commit
5619d5dccf
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ if command -v direnv 2>&1 >/dev/null; then
|
|||
_direnv_hook() {
|
||||
local previous_exit_status=$?;
|
||||
trap -- '' SIGINT;
|
||||
eval "$("${HOME}/.nix-profile/bin/direnv" export bash)";
|
||||
eval "$(direnv export bash)";
|
||||
trap - SIGINT;
|
||||
return $previous_exit_status;
|
||||
};
|
||||
|
|
@ -13,7 +13,7 @@ if command -v direnv 2>&1 >/dev/null; then
|
|||
# eval "$(direnv hook zsh)"
|
||||
_direnv_hook() {
|
||||
trap -- '' SIGINT;
|
||||
eval "$("${HOME}/.nix-profile/bin/direnv" export zsh)";
|
||||
eval "$(direnv export zsh)";
|
||||
trap - SIGINT;
|
||||
}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue