Skip to content

Commit 4fb8523

Browse files
authored
Start/remove dbg string (#46)
* remove redundant debug string and remove eroneous PS1 detection * VERSION = 7.0.0
1 parent a472ecc commit 4fb8523

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0-dev
1+
7.0.0

src/cli/start.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ std::optional<std::string> detect_non_interactive() {
5252
if (std::getenv("BASH_EXECUTION_STRING")) {
5353
return "BASH_EXECUTION_STRING is set";
5454
}
55-
if (!std::getenv("PS1")) {
56-
return "PS1 is not set";
57-
}
55+
// don't check PS1 - PS1 is not exported by tools like oh-my-posh in zsh
5856
return std::nullopt;
5957
}
6058

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

8985
const auto env = concretise_env(args.uenv_description,

0 commit comments

Comments
 (0)