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

« back to all changes in this revision

Viewing changes to contrib/pkgtools

  • Committer: Bazaar Package Importer
  • Author(s): David Paleino
  • Date: 2009-11-14 23:42:55 UTC
  • mfrom: (8.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091114234255-pfxxt8bobqbq9hqq
Tags: 1:1.1-3
debian/patches/03-fix_552631.patch fixed (Closes: #556251)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# bash completion for Slackware Linux pkgtools
 
2
 
 
3
have removepkg && [ -f /etc/slackware-version ] &&
 
4
_removepkg()
 
5
{
 
6
    local packages cur
 
7
 
 
8
    COMPREPLY=()
 
9
    cur=`_get_cword`
 
10
 
 
11
    COMPREPLY=( $( (cd /var/log/packages; compgen -f -- "$cur") ) )
 
12
} &&
 
13
complete -F _removepkg $filenames removepkg &&
 
14
    complete $dirnames -f -X '!*.tgz' installpkg upgradepkg explodepkg
 
15
 
 
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
# ex: ts=4 sw=4 et filetype=sh