has-session - only exact matches

from man
>If the session name is prefixed with an ‘=’, only an exact match is accepted (so ‘=mysess’ will only match exactly ‘mysess’, not ‘mysession’).
This commit is contained in:
Roman Frołow 2019-02-28 22:56:34 +01:00 committed by Geoff Harcourt
parent cdc55ef186
commit 2e49faecfe

View file

@ -10,7 +10,7 @@ not_in_tmux() {
}
session_exists() {
tmux has-session -t "$session_name"
tmux has-session -t "=$session_name"
}
create_detached_session() {