xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/tab

11 lines
239 B
Plaintext
Raw Normal View History

#!/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