head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.2 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.3.0.58 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.56 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.54 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.52 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.50 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.48 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.46 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.44 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.42 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.40 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.38 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.36 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.34 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.32 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.30 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.28 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.26 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.24 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.3.0.22 pkgsrc-2021Q2-base:1.3 pkgsrc-2021Q1:1.3.0.20 pkgsrc-2021Q1-base:1.3 pkgsrc-2020Q4:1.3.0.18 pkgsrc-2020Q4-base:1.3 pkgsrc-2020Q3:1.3.0.16 pkgsrc-2020Q3-base:1.3 pkgsrc-2020Q2:1.3.0.14 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.3.0.10 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.12 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.8 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.6 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.4 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.2 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.2.0.16 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.14 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.12 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.10 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.8 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.4 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.2 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.1.0.30 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.28 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.26 pkgsrc-2016Q2-base:1.1 pkgsrc-2016Q1:1.1.0.24 pkgsrc-2016Q1-base:1.1 pkgsrc-2015Q4:1.1.0.22 pkgsrc-2015Q4-base:1.1 pkgsrc-2015Q3:1.1.0.20 pkgsrc-2015Q3-base:1.1 pkgsrc-2015Q2:1.1.0.18 pkgsrc-2015Q2-base:1.1 pkgsrc-2015Q1:1.1.0.16 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.14 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.12 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.10 pkgsrc-2014Q2-base:1.1 pkgsrc-2014Q1:1.1.0.8 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.6 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.4 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.2 pkgsrc-2013Q2-base:1.1; locks; strict; comment @# @; 1.4 date 2026.01.06.20.20.55; author adam; state Exp; branches; next 1.3; commitid ATqhpQvinhVW7npG; 1.3 date 2018.10.19.20.28.25; author leot; state Exp; branches; next 1.2; commitid ZHWo8MkhKFsRTBWA; 1.2 date 2017.03.14.14.51.28; author jperkin; state Exp; branches; next 1.1; commitid bjNfpgyttnfGNwJz; 1.1 date 2013.05.10.12.01.51; author imil; state Exp; branches; next ; desc @@ 1.4 log @bash-completion: updatd to 2.17.0 2.17.0 Features _comp_backup_glob: add zsync .zs-old (a342d3a) _comp_compgen_help: enhance for smartctl (2f7513c) _comp_compgen: support -P prefix with adjusted cur (b6d4335) _comp_compgen: support -P prefix with auto-adjusted cur (6da0ae8) _filedir: add -f to manually suffix / to directory names (13868b8) _filedir: add tests with _comp_compgen -C (d99f06a) *sum: handle more common checksum filenames (6cc313f) 3rd party fallback completion loaders for diffoci, gomarklint, and mado (5e9ab5a) aptitude: update sub-commands (4ac918f) asdf: add 3rd-party fallback completion loader for "asdf" (cb9303f) associate .ogx and .oga with relevant programs (0a13be1) bombadil: add 3rd party fallback completion loader (90ef9a2) brave: alias to chromium (928c74f) bsdtar: support .apk, .ipa and .hap (bc10b93) coreutils: update for newer GNU coreutils curl: Complete IP addresses for --interface (0ea21b9) diffoci: add 3rd party fallback completion loader (5d5f997) free: new completion (f82ac04) fsnotifywait,fsnotifywatch: new, alias to inotifywait (8e8dacc) glab: add 3rd party fallback completion loader (c298dcf) glances: add 3rd party fallback completion loader (4218596) gomarklint: add 3rd party fallback completion loader (162dcf1) mado: add 3rd party fallback completion loader (4e4f6be) nload: new completion (e700ae7) openssl: Complete encryption algos for enc (01b3aa2) openssl: show only standard commands (6fb0827) pytest: complete --asyncio-mode arg (6b27125) pytest: complete --record-mode arg (d14cf0d) shtab: add 3rd party fallback completion loader (90162b0) shtab: add 3rd party fallback completion loader (20f5622) smartctl: update for smartmontools 7.5 (31675a3) tldr: add 3rd party fallback completion loader (298700a) tmux: add a new completion trash-cli: add 3rd party fallback completion loader (533244c) unzip,zipinfo: Android split APK .apkm .apks .xapk (92f558d) unzip,zipinfo: generate *.crx (Google Chrome Extension archives) unzip,zipinfo: recognize HarmonyOS .hap (21cf854) wget: ipv6 addresses for --bind-address (d3ff6a7) Bug Fixes _comp_command_offset: work around nounset (28e19a2) _comp_compgen: go to the original directory on compgen failure (a5637e9) _comp_compgen: go to the original directory on compgen failure (83d92c2) _comp_dequote: set the literal value to REPLY as a fallback _filedir: always set compopt -o filenames to quote special chars (99c599b) _filedir: apply trailing slashes with -f (b373d00) _umount,feh,sbopkg: check diretory name for "_comp_compgen -C" (c2c6c08) _umount,feh,sbopkg: check diretory name for _comp_compgen -C (ff9e1d3) add miscellaneous fixes before implementing _comp_compgen -P (6bd5e26) brctl: fix quoting of the command name cd: fix the pattern matching (b6503ba) cd: generate only cdable_vars containing valid directory paths (b1374fc) cd: generate only cdable_vars containing valid directory paths (355eb4d) convert: Try calling magick, for IM7 (4509832) convert: Try calling magick, for IM7 (ba0b8b9) feh: fix "nounset" error (e9e665e) firefox: do not split longopt argument (5f3e5f8) interfaces: trim @@link from completions ip: Don't offer neighbour, only neighbor (79fd051) java,rsync,scp: handle quoted space in filepaths properly (c7be206) java,rsync,ssh: complete syntactically incomplete cur (32515a3) java,rsync,ssh: complete syntactically incomplete cur (da0df56) make,tshark: work around localvar_inherit (d4ae526) make: work around custom IFS @ text @$NetBSD: patch-bash__completion,v 1.3 2018/10/19 20:28:25 leot Exp $ Added pkgsrc completions --- bash_completion.orig 2025-10-31 14:03:32.000000000 +0000 +++ bash_completion @@@@ -2611,6 +2611,11 @@@@ _comp_try_faketty() extract patch configure build install reinstall deinstall clean clean-depends kernel buildworld' make +# a little help for NetBSD pkgsrc users +[[ $OSTYPE = *netbsd* ]] && complete -W 'index search fetch fetch-list + extract patch configure build install reinstall + deinstall package clean clean-depends' make + # This function provides simple user@@host completion # # @@since 2.12 @ 1.3 log @bash-completion: Update shells/bash-completion to 2.8 Patch provided by Attila Fülöp via netbsd/pkgsrc#36, thanks! pkgsrc changes: - Update MASTER_SITES and HOMEPAGE Changes: Unfortunately the changelog is very long. Only new/removed completions/helpers are documented here (since 2.1): The following completions were added: - 2to3, 7z, 7za, _cal, _chfn, _chsh, _dmesg, _eject, _hexdump, _hwclock, _ionice, _look, _mock, _modules, _newgrp, _nmcli, _renice, _repomanage, _reptyr, _rfkill, _rtcwake, _runuser, _su, _svn, _svnadmin, _svnlook, _udevadm, _write, _yum, aclocal-1.10, aclocal-1.12, aclocal-1.13, aclocal-1.14, aclocal-1.15, adb, appdata-validate, aptitude-curses, automake-1.10, automake-1.12, automake-1.13, automake-1.14, automake-1.15, bind, bts, ccze, checksec, createuser, deja-dup, dropuser, ebtables, f77, f95, flake8, freebsd-update, g95, geoiplookup, geoiplookup6, getconf, gfortran, gm, gnokii, hostname, jpegoptim, jshint, lsscsi, lsusb, lz4, lz4c, micropython, mr, nproc, oggdec, optipng, pdftotext, perltidy, pngfix, portsnap, pv, py.test, py.test-2, py.test-3, pycodestyle, pyflakes, pylint-2, pylint-3, pypy, pypy3, pyvenv, pyvenv-3.4, pyvenv-3.5, qemu-kvm, qemu-system-i386, qemu-system-x86_64, radvdump, sidedoor, ssh-keygen, synclient, timeout, tipc, tox, xdg-mime, xdg-settings, zopfli, zopflipng, python, The following completions were removed: - cal, chsh, dmesg, eject, hexdump, hwclock, ionice, look, newgrp, nmcli, renice, reptyr, rfkill, rtcwake, su, The following helpers were added: - python @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- bash_completion.orig 2018-03-17 08:32:34.000000000 +0000 d7 1 a7 1 @@@@ -1402,6 +1402,11 @@@@ _terms() d18 1 a18 1 _user_at_host() @ 1.2 log @Pull in upstream fix for bug 1289597. Brought to our attention by Kevin Neaton in joyent/pkgsrc#471. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-bash__completion,v 1.1 2013/05/10 12:01:51 imil Exp $ d3 1 a3 2 Added pkgsrc and pkg_install completions Pull in upstream fix for bug 1289597. d5 1 a5 1 --- bash_completion.orig 2013-04-05 10:55:51.000000000 +0000 d7 1 a7 10 @@@@ -707,7 +707,7 @@@@ _init_completion() fi done - [[ $cword -eq 0 ]] && return 1 + [[ $cword -le 0 ]] && return 1 prev=${words[cword-1]} [[ ${split-} ]] && _split_longopt && split=true @@@@ -1365,6 +1365,34 @@@@ _terms() d12 3 a14 26 +[[ $OSTYPE = *netbsd* ]] && complete -W 'index search fetch fetch-list \ + extract patch configure build install reinstall \ + deinstall package clean clean-depends' make + + +[[ $OSTYPE = *netbsd* ]] && { +# NetBSD package management tool completion +# +_pkg_delete() +{ + local cur pkgdir prev + + pkgdir=${PKG_DBDIR:-/var/db/pkg}/ + cur=`_get_cword` + prev=${COMP_WORDS[COMP_CWORD-1]} + + [ "$prev" = "-o" -o "$prev" = "-p" -o "$prev" = "-W" ] && return 0 + + COMPREPLY=( $( compgen -d $pkgdir$cur ) ) + COMPREPLY=( ${COMPREPLY[@@]#$pkgdir} ) + + return 0 +} +complete -F _pkg_delete $dirnames pkg_delete pkg_info +have pkg_deinstall && complete -F _pkg_delete $dirnames pkg_deinstall +} @ 1.1 log @Updated bash-completion to 2.1 An extensive changelog is readable here: http://bash-completion.alioth.debian.org/files/CHANGES-1.1 http://bash-completion.alioth.debian.org/files/CHANGES-1.2 http://bash-completion.alioth.debian.org/files/CHANGES-1.3 http://bash-completion.alioth.debian.org/files/CHANGES-2.0 http://bash-completion.alioth.debian.org/files/CHANGES-2.1 @ text @d1 1 a1 1 $NetBSD$ d4 1 d8 9 @