Allowing nesting with "main" session, removing io-ii.
[iomenu.git] / io-abduco
blob0fc4eb0e289d6fd5fc3f7610bd6fbaecd78a840c
1 # Prompt for an abduco session to attach to
3 [ "$ABDUCO" != 'main' ] || [ -z "$ABDUCO" ] && exit 1
5 name="$(
6         printf '#%s' "$(
7                 abduco | sed -r 's/(.*)\t(.*)/\2 # \1/'
8         )" | iomenu -s '#'
9 )"
11 [ "$name" ] && TERM=screen ABDUCO="$name" exec abduco -A "$name" io-run