summaryrefslogtreecommitdiff
path: root/modules/environment
diff options
context:
space:
mode:
authorColin Barrett <colin@springsandstruts.com>2017-10-06 22:08:44 -0400
committerColin Barrett <colin@springsandstruts.com>2017-10-15 23:26:16 -0400
commita6cd3bb61ffb29d74ed86cfbbde831b58e00aed7 (patch)
tree46c4003abc18f42d2a1fd71faecd8717bfac3881 /modules/environment
parent48c8e01112c7483633a37f1534388e5fa42ed747 (diff)
Port over the NixOS fish module
Diffstat (limited to 'modules/environment')
-rw-r--r--modules/environment/default.nix20
1 files changed, 20 insertions, 0 deletions
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 = ''