made nest prevent message more helpful

This commit is contained in:
Valerie Wolfe 2024-06-10 12:02:57 -04:00
parent 19b12c682d
commit 26f6fd5dd0

View file

@ -28,7 +28,7 @@ pub fn get_sessions() -> Option<Vec<Session>> {
/// show the tmux nest text if env var is not unset
pub fn prevent_nest() {
if env::tmux() {
println!("Sessions should be nested with care; unset TMUX or use the '-n' flag to allow.");
println!("To nest sessions, use the -n flag.");
exit(6);
}
}