make autorun optional

squash
This commit is contained in:
atagen 2025-02-06 11:28:02 +11:00
parent 9a8c417cbb
commit 32151a99d1
2 changed files with 18 additions and 10 deletions

View file

@ -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;