chiark / gitweb /
Start and stop cfsd when mounting and unmounting the USB keyfob, and remove
[bin.git] / command-args
1 #! /bin/bash
2
3 echo $COMP_CWORD
4
5 if [ "$COMP_CWORD" = 1 ]; then
6         compgen -c $2
7 else
8         case ${2:0:1} in
9         $) compgen -v $2;;
10         ~) compgen -u $2;;
11         @) compgen -A hostname $2;;
12         *) compgen -f $2;;
13         esac
14 fi
15