make autorun optional
squash
This commit is contained in:
parent
9a8c417cbb
commit
32151a99d1
2 changed files with 18 additions and 10 deletions
14
ides.nix
14
ides.nix
|
@ -330,10 +330,20 @@
|
|||
restart
|
||||
];
|
||||
shellHook =
|
||||
let
|
||||
autoRun =
|
||||
if config.auto then
|
||||
''
|
||||
ides run
|
||||
''
|
||||
else
|
||||
"";
|
||||
in
|
||||
(shellArgs.shellHook or "")
|
||||
+ ''
|
||||
ides
|
||||
'';
|
||||
ides help
|
||||
''
|
||||
+ autoRun;
|
||||
};
|
||||
in
|
||||
config._buildIdes.shellFn final;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue