diff --git a/AUTHORS b/AUTHORS index 6004233..6dbeffc 100644 --- a/AUTHORS +++ b/AUTHORS @@ -3,3 +3,4 @@ Tobias Happ Bruno Bigras Evgeny Kurnevsky Zhong Jianxin +Shelvacu diff --git a/modules/environment/session-init.nix b/modules/environment/session-init.nix index 5cabe80..0d67d8b 100644 --- a/modules/environment/session-init.nix +++ b/modules/environment/session-init.nix @@ -39,6 +39,8 @@ let ''} ${exportAll cfg.sessionVariables} + + ${cfg.shellInit} ''; }; in @@ -61,6 +63,16 @@ in ''; }; + shellInit = mkOption { + default = ""; + type = types.lines; + description = '' + Shell script code called during shell initialization + + This is useful to add custom aliases or functions, for example. + ''; + }; + sessionVariables = mkOption { default = { }; type = types.attrs;