direnv: Init

This commit is contained in:
2022-04-23 20:12:59 +02:00
parent 4ccbed71a8
commit 5be8612163
4 changed files with 28 additions and 1 deletions

View File

@@ -47,8 +47,14 @@ in {
bindkey "\e[3~" delete-char
'';
history.share = true;
initExtraFirst = let
enableDirenv = lib.optionalString
config.ptw.programs.direnv.enable
"eval \"$(${pkgs.direnv}/bin/direnv hook zsh)\"";
in ''
${enableDirenv}
# TODO: Maybe move this somewhere else
initExtraFirst = ''
wcurl() {
[[ -z "$1" ]] && echo "Error: No URL specified" && exit 1