Sha256: d3d50c752b1fb13eac5f4c4e87bffbddffe4a8ae3278feb00574f444a4327d4c

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

#!/usr/bin/env bash

__filedirs()
{
  local IFS=$'\n'
  COMPREPLY=( $(compgen -o plusdirs -f -- "${cur}") )
}

_mde() {
  local cur prev opts
  cur="${COMP_WORDS[COMP_CWORD]}"
  prev="${COMP_WORDS[COMP_CWORD-1]}"
  opts="$(mde --tab-completions)"

  if [[ ${cur} == -* ]] ; then
    COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
    return 0
  fi

  __filedirs
}

complete -o filenames -F _mde mde

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdown_exec-1.0.0 bin/tab_completion.sh