tmux: don't attach to scratch session

This commit is contained in:
Henrik Lissner 2020-04-06 15:41:04 -04:00
parent 9103a582d6
commit d5fdda309d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -13,7 +13,7 @@ super + apostrophe
# Attach to a detached session. If none is available create a new one, rather
# than attach to one that is already attached to elsewhere.
super + Return
xst -e bash -c "(tmux ls | grep -vq attached && tmux at) || tmux"
xst -e bash -c "(tmux ls | grep -qEv 'attached|scratch' && tmux at) || tmux"
ctrl + super + Return
xst