myshellconfig/bash_completion.d/uencfs

12 lines
280 B
Text
Raw Normal View History

#!/bin/bash
function _uencfsfiles() {
COMPREPLY=()
local CUR KEYS
CUR="${COMP_WORDS[COMP_CWORD]}"
KEYS=$(mount|grep encfs|sed -e 's/^encfs on \(.*\)\ type.*$/\1/')
COMPREPLY=( $(compgen -W "${KEYS}" -- ${CUR}) )
return 0
}
complete -F _uencfsfiles uencfs