10 lines
239 B
Bash
Executable file
10 lines
239 B
Bash
Executable file
#!/bin/sh
|
|
test -n "$1" || {
|
|
echo "usage: tab <ID>"
|
|
echo -e "\ntabs: "
|
|
find /tmp/*.dtach | xargs -n1 basename | sed 's/\.dtach//g'
|
|
exit 0;
|
|
}
|
|
|
|
# attach to a sessions [or create if it does not exist]
|
|
dtach -r ctrl_l -A /tmp/$1.dtach
|