myshellconfig/bash_completion.d/uencfs
Jakobus Schürz d2f0657629 transition from HOSTCONFIG to MYSHELLCONFIG
and use the same pathes for vim plugin repos on git.schuerz.at as on
github.com
2020-01-14 10:12:00 +01:00

11 lines
280 B
Bash

#!/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