Skip to content

Commit

Permalink
Fix disabling process compose TUI on detach
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Apr 9, 2024
1 parent 7925cce commit ace2990
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devenv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,11 @@ impl App {

let processes_script = self.devenv_dotfile.join("processes");
// we force disable process compose tui if detach is enabled
let tui = if *detach { "PC_TUI_ENABLED=0" } else { "" };
let tui = if *detach {
"export PC_TUI_ENABLED=0"
} else {
""
};
fs::write(
&processes_script,
indoc::formatdoc! {"
Expand Down
6 changes: 6 additions & 0 deletions examples/python-django/devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
inputs:
nixpkgs-python:
url: github:cachix/nixpkgs-python
inputs:
nixpkgs:
follows: nixpkgs

0 comments on commit ace2990

Please sign in to comment.