addet tmux function
This commit is contained in:
parent
f67fa90399
commit
21924f1f04
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue