Sha256: 1dba90e4e0f04f146c8ba9515cb852e53b531cf3b2dde8faadc6fbccca738a30

Contents?: true

Size: 713 Bytes

Versions: 5

Compression:

Stored size: 713 Bytes

Contents

#!/bin/bash

_shelr() 
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    opts="record push dump list play setup backend"

    if test $COMP_CWORD -eq 2; then
      case $prev in
          record|list)
              COMPREPLY=() ;
              return 0 ;;
          backend)
              COMPREPLY=( $(compgen -W "ttyrec script" -- ${cur}) ) ;
              return 0 ;;
          push|play)
              COMPREPLY=( "last" ) ;
              return 0 ;;
      esac
    fi

    if test $COMP_CWORD -eq 1; then
      COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) 
      return 0
    fi

}
complete -F _shelr shelr

# vim:set ts=4 sw=2 et: 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shelr-0.16.3 contrib/shelr.bash.complete
shelr-0.16.2 contrib/shelr.bash.complete
shelr-0.16.1 contrib/shelr.bash.complete
shelr-0.16.0 contrib/shelr.bash.complete
shelr-0.15.2 contrib/shelr.bash.complete