mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
gave up on conditionally loading direnv in fish
This commit is contained in:
parent
6470edba71
commit
e6160107b4
1 changed files with 1 additions and 10 deletions
|
|
@ -12,7 +12,7 @@ _: {pkgs, ...}: {
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
zsh.interactiveShellInit = ''
|
zsh.interactiveShellInit = ''
|
||||||
if [[ -o interactive ]] && ! printenv PATH | grep -qc '/nix/store' && [ -z "$IN_NIX_SHELL" ] ; then
|
if ! printenv PATH | grep -qc '/nix/store' && [ -z "$IN_NIX_SHELL" ] ; then
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
@ -21,14 +21,5 @@ _: {pkgs, ...}: {
|
||||||
eval "$(direnv hook bash)"
|
eval "$(direnv hook bash)"
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
# doesn't work for some reason
|
|
||||||
# fish.enable = true;
|
|
||||||
# fish.interactiveShellInit = ''
|
|
||||||
# set -g direnv_fish_mode disable_arrow
|
|
||||||
# if status --is-interactive; and not printenv PATH | grep -qc '/nix/store'; and [ -z "$IN_NIX_SHELL" ];
|
|
||||||
# direnv hook fish | source;
|
|
||||||
# echo "loaded direnv";
|
|
||||||
# end
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue