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:
parent
cdc55ef186
commit
2e49faecfe
1 changed files with 1 additions and 1 deletions
2
bin/tat
2
bin/tat
|
@ -10,7 +10,7 @@ not_in_tmux() {
|
||||||
}
|
}
|
||||||
|
|
||||||
session_exists() {
|
session_exists() {
|
||||||
tmux has-session -t "$session_name"
|
tmux has-session -t "=$session_name"
|
||||||
}
|
}
|
||||||
|
|
||||||
create_detached_session() {
|
create_detached_session() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue