From a6cd3bb61ffb29d74ed86cfbbde831b58e00aed7 Mon Sep 17 00:00:00 2001 From: Colin Barrett Date: Fri, 6 Oct 2017 22:08:44 -0400 Subject: Port over the NixOS fish module --- modules/environment/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'modules/environment') diff --git a/modules/environment/default.nix b/modules/environment/default.nix index 3089362..a6fcf26 100644 --- a/modules/environment/default.nix +++ b/modules/environment/default.nix @@ -105,6 +105,26 @@ in { ''; }; + environment.shellInit = mkOption { + default = ""; + description = '' + Shell script code called during shell initialisation. + This code is asumed to be shell-independent, which means you should + stick to pure sh without sh word split. + ''; + type = types.lines; + }; + + environment.loginShellInit = mkOption { + default = ""; + description = '' + Shell script code called during login shell initialisation. + This code is asumed to be shell-independent, which means you should + stick to pure sh without sh word split. + ''; + type = types.lines; + }; + environment.interactiveShellInit = mkOption { default = ""; description = '' -- cgit v1.2.3