diff options
Diffstat (limited to 'completions/chrpath')
-rw-r--r-- | completions/chrpath | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/completions/chrpath b/completions/chrpath new file mode 100644 index 00000000..5d40203a --- /dev/null +++ b/completions/chrpath @@ -0,0 +1,33 @@ +have chrpath || return + +_chrpath() +{ + local cur prev words cword + _init_completion || return + + case $prev in + -v|--version|-h|--help) + return + ;; + -r|--replace) + _filedir -d + return + ;; + esac + + if [[ $cur == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + return + fi + + _filedir +} && +complete -F _chrpath chrpath + +# Local variables: +# mode: shell-script +# sh-basic-offset: 4 +# sh-indent-comment: t +# indent-tabs-mode: nil +# End: +# ex: ts=4 sw=4 et filetype=sh |