~ubuntu-branches/ubuntu/vivid/bash-completion/vivid-proposed

« back to all changes in this revision

Viewing changes to contrib/lisp

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2011-02-08 09:39:13 UTC
  • mfrom: (5.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20110208093913-89h9hx9eq5j7vjpw
Tags: 1:1.3-1ubuntu1
* Merge from debian unstable. (LP: #715057) Remaining changes:
  - debian/patches/disable-avahi-browse.diff: Disable avahi-browse since
    it scales poorly in the current form:
    + Refresh patch
  - debian/patches/apt-get-changelog.patch:
    + Re-work patch because contrib dir no longer exists in upstream
      distribution.
* Dropped chages, applied upstream:
  - Fix p4 completion
  - Fix typo in openssl completion
  - Fix error while loading service(8) completions

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# bash programmable completion for various Common Lisp implementations by
2
 
# Nikodemus Siivola <nikodemus@random-state.net>
3
 
 
4
 
have lisp &&
5
 
_lisp()
6
 
{
7
 
    local cur
8
 
 
9
 
    COMPREPLY=()
10
 
    _get_comp_words_by_ref cur
11
 
 
12
 
    # completing an option (may or may not be separated by a space)
13
 
    if [[ "$cur" == -* ]]; then
14
 
    COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init \
15
 
        -dynamic-space-size -hinit -noinit -nositeinit -load -slave ' \
16
 
        -- "$cur" ) )
17
 
    else
18
 
        _filedir
19
 
    fi
20
 
 
21
 
    return 0
22
 
} &&
23
 
complete -F _lisp -o default lisp
24
 
 
25
 
# Local variables:
26
 
# mode: shell-script
27
 
# sh-basic-offset: 4
28
 
# sh-indent-comment: t
29
 
# indent-tabs-mode: nil
30
 
# End:
31
 
# ex: ts=4 sw=4 et filetype=sh