addet tmux function

This commit is contained in:
pika 2024-05-22 20:23:00 +02:00
parent f67fa90399
commit 21924f1f04

View file

@ -1,8 +1,10 @@
if command -v tmux 2>&1
function ta
if command tmux list-sessions 2>&1
command tmux list-sessions 2>&1
switch $status
case '0'
tmux a
else
case '*'
tmux
end
end