Allowing non-looping nesting
[iomenu.git] / io-abduco
blobe330cb3b46285b08f9b7436c0162484ae426c7ea
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 if [ "$name" != "$ABDUCO" ] && [ "$name" ]
12 then
13         TERM=screen ABDUCO="$name" exec abduco -e '^Z' -A "$name" "$SHELL"