added beginings of bash completion origonal code concept contributed by @odgrim