diff --git a/lib/cli/commands/scheduler/scheduler_manager.dart b/lib/cli/commands/scheduler/scheduler_manager.dart index 1a784f5..1b10ca3 100644 --- a/lib/cli/commands/scheduler/scheduler_manager.dart +++ b/lib/cli/commands/scheduler/scheduler_manager.dart @@ -276,6 +276,13 @@ class SchedulerManager { //======================== other process ========================// Future start() async { + var zprofile = File('$userPath/.zprofile'); + if(zprofile.existsSync()) { + _log(zprofile.readAsStringSync()); + var shell = StringBuffer('source ${zprofile.path}'); + await ProcessExecutor.start(shell); + } + _log('Scheduler is running on pid [$pid].'); while(true) { //매초 마다 등록된 파일이 있나 체크 diff --git a/lib/oto/commands/shell/shell.dart b/lib/oto/commands/shell/shell.dart index 91df0aa..8ca96c3 100644 --- a/lib/oto/commands/shell/shell.dart +++ b/lib/oto/commands/shell/shell.dart @@ -16,10 +16,10 @@ class Shell extends Command { } if(data.setMessage == null) { - var process = await ProcessExecutor.start(shell, workspace: workspace, logHandler: Application.logWithType); + var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType); return await completeProcess(process, command); } else { - var process = await ProcessExecutor.run(shell, workspace: workspace, logHandler: Application.logWithType); + var process = await ProcessExecutor.run(shell, logHandler: Application.logWithType); var str = process.stdout.toString(); var length = str.length; str = str.substring(0, length - 1); @@ -40,7 +40,7 @@ class ShellFile extends Command { } else { shell.writeln('source $path'); } - var process = await ProcessExecutor.start(shell, workspace: workspace, logHandler: Application.logWithType); + var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType); return await completeProcess(process, command); }