|
|
|
|
|
by mjbrownie
2453 days ago
|
|
I use tmux in conjunction with tmuxp and highly recommend the pairing (or alternately use tmuxinator). a bash shortcut I use every day to attach/create/restore dozens of sessions is. pc:bt2$ cat ~/bin/t
#!/bin/bash
if [[ $# == 0 ]]; then
echo tmux list-sessions
echo
tmux list-sessions
echo
echo tmuxp sessions
echo
ls ~/.tmuxp
else
tmuxp load $1 || tmux attach -t $1 || tmux new-session -s $1
fi
usage "t session_name" |
|