1 2 3 4 5 6 7 8 9
#defcomp rlogin rsh ssh if [[ -position 1 ]]; then complist -k hosts elif [[ -position 2 ]]; then complist -k '(-l)' else complist -u fi