~ubuntu-branches/debian/experimental/bash-completion/experimental

« back to all changes in this revision

Viewing changes to completions/pine

  • Committer: Package Import Robot
  • Author(s): David Paleino
  • Date: 2011-11-03 13:03:51 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20111103130351-mjans3w2ufbwwssf
Tags: 1:1.90-1
* bash-completion 2 preview: dynamic loading of completions
  - optionally fallback to generic file completion if _filedir
    returns nothing (Closes: #619014, LP: #533985)
  - various fixes (Closes: #622383)
  - apt: add 'download' to subcommands (Closes: #625234, LP: #720541)
  - aptitude: add 'versions' command (Closes: #604393)
  - dpkg-query: use the 'dpkg' completion (Closes: #642526)
  - lintian: remove --unpack-level (Closes: #623680)
  - rrdtool: complete filenames after commands (Closes: #577933)
  - provide profile.d hook for per user disabling of bash_completion
    (Closes: #593835)
  - mutt: support tildes when recursively sourcing muttrc files
    (Closes: #615134)
  - tar: improve tar *[cr]*f completions (Closes: #618734)
* More checks in update-bash-completion: avoid unnecessary
  sourcing of completion if symlink already exists
* Add message for users before they report a bug (debian/bug-presubj),
  I'm kind of fed-up with bugs caused by acroread.sh :/
* Removed patches merged upstream
* Drop trigger-based completion loading
* Standards-Version bump to 3.9.2, no changes needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# PINE address-book completion
 
1
# PINE address-book completion                             -*- shell-script -*-
2
2
 
3
 
have pine || have alpine &&
4
3
_pineaddr()
5
4
{
6
 
    local cur
7
 
 
8
 
    COMPREPLY=()
9
 
    _get_comp_words_by_ref cur
 
5
    local cur prev words cword
 
6
    _init_completion || return
10
7
 
11
8
    COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook \
12
9
        2>/dev/null)' -- "$cur" ) )
13
10
} &&
14
11
complete -F _pineaddr -o default pine alpine
15
12
 
16
 
# Local variables:
17
 
# mode: shell-script
18
 
# sh-basic-offset: 4
19
 
# sh-indent-comment: t
20
 
# indent-tabs-mode: nil
21
 
# End:
22
13
# ex: ts=4 sw=4 et filetype=sh