summaryrefslogtreecommitdiff
path: root/bash_completion.in
blob: 5e4fe666d987c749913a35908f79d5c11a3eec69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

_mkarchroot() {
  local cur
  COMPREPLY=()
  _get_comp_words_by_ref cur

  case $cur in
    -*)
       COMPREPLY=( $( compgen -W '-C -M -c -f -h -n -r -u' -- "$cur" ) )
       ;;
    *)
      _filedir
      return 0
      ;;
  esac

  true
} &&
complete -F _mkarchroot archroot


# ex:et ts=2 sw=2 ft=sh