made nest prevent message more helpful

This commit is contained in:
Valerie Wolfe 2024-06-06 14:04:26 -04:00
parent 4f372ead42
commit 18dd30f101

View file

@ -28,7 +28,7 @@ pub fn get_sessions() -> Option<Vec<Session>> {
/// show the tmux nest text if env var is not unset /// show the tmux nest text if env var is not unset
pub fn prevent_nest() { pub fn prevent_nest() {
if env::tmux() { 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); exit(6);
} }
} }