some changes
This commit is contained in:
parent
3e72426264
commit
d9ca8858cb
2 changed files with 10 additions and 13 deletions
|
@ -1,13 +1,7 @@
|
|||
if command -v tmux /dev/null 2>&1
|
||||
function ta
|
||||
command tmux list-sessions /dev/null 2>&1
|
||||
switch $status
|
||||
case '0'
|
||||
tmux a
|
||||
case '*'
|
||||
echo "-- there are no tmux sessions | creating one now.. "
|
||||
sleep 0.7
|
||||
tmux
|
||||
end
|
||||
end
|
||||
end
|
||||
[38;2;249;38;114mfunction[0m[38;2;255;255;255m [0m[38;2;166;226;46mta[0m
|
||||
[38;2;249;38;114mif[0m[38;2;255;255;255m [0m[38;2;255;255;255mcommand[0m[38;2;255;255;255m [0m[38;2;253;151;31m-[0m[38;2;253;151;31mv[0m[38;2;255;255;255m [0m[38;2;255;255;255mtmux[0m[38;2;255;255;255m [0m[38;2;255;255;255mlist-sessions[0m[38;2;255;255;255m [0m[38;2;255;255;255m/dev/null[0m[38;2;255;255;255m [0m[38;2;190;132;255m2[0m[38;2;249;38;114m>[0m[38;2;249;38;114m&[0m[38;2;190;132;255m1[0m
|
||||
[38;2;255;255;255m [0m[38;2;255;255;255mtmux[0m[38;2;255;255;255m [0m[38;2;255;255;255ma[0m
|
||||
[38;2;255;255;255m [0m[38;2;249;38;114melse[0m
|
||||
[38;2;255;255;255m [0m[38;2;255;255;255mtmux[0m
|
||||
[38;2;255;255;255m [0m[38;2;249;38;114mend[0m
|
||||
[38;2;249;38;114mend[0m
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue