Skip to content

Commit

Permalink
Start/remove dbg string (#46)
Browse files Browse the repository at this point in the history
* remove redundant debug string and remove eroneous PS1 detection
* VERSION = 7.0.0
  • Loading branch information
bcumming authored Jan 10, 2025
1 parent a472ecc commit 4fb8523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.0-dev
7.0.0
6 changes: 1 addition & 5 deletions src/cli/start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ std::optional<std::string> detect_non_interactive() {
if (std::getenv("BASH_EXECUTION_STRING")) {
return "BASH_EXECUTION_STRING is set";
}
if (!std::getenv("PS1")) {
return "PS1 is not set";
}
// don't check PS1 - PS1 is not exported by tools like oh-my-posh in zsh
return std::nullopt;
}

Expand Down Expand Up @@ -82,8 +80,6 @@ If your intention is to initialize an environment (like module load), uenv start
will not work, because it starts a new interactive shell.)",
reason.value(), "uenv run --help"));
return 1;
} else {
fmt::println("uenv start worked!");
}

const auto env = concretise_env(args.uenv_description,
Expand Down

0 comments on commit 4fb8523

Please sign in to comment.