summaryrefslogtreecommitdiffstats
path: root/bash-completion
Commit message (Collapse)AuthorAgeFilesLines
...
* tailf: remove deprecated utilitySami Kerola2017-04-022-31/+0Star
| | | | | | | | March 2017 is gone, it is time to remove this utility as scheduled in earlier commit, and promised in manual page. Reference: 3f8478a71ccde6883d4c81b7e65561a106653b28 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: update fincore to have latest optionsSami Kerola2017-03-241-2/+23
| | | | | | Also include --output smartcols fields. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: add a function for fincore commandMasatake YAMATO2017-03-232-0/+28
| | | | Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* blkzone: add count option to bash-completionKarel Zak2017-02-241-1/+5
| | | | | | and fix typo in man page Signed-off-by: Karel Zak <kzak@redhat.com>
* blkreport, blkreset: remove in favour of blkzoneKarel Zak2017-02-231-34/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkzone: add bash-completionKarel Zak2017-02-232-0/+51
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rename: add --no-act to bash-completionKarel Zak2017-02-151-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: add blkreset and blkreport completionSami Kerola2017-02-131-0/+34
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hwclock: remove --compare optionSami Kerola2017-02-051-1/+0Star
| | | | | | | | | | | Compare functionality was printing nonsense values. There is no knowledge of anyone using this broken functionality. Instead of deprecating the code for months, and removing it after few release, it is removed immediately. Needless to say this is unusual removal. Reference: http://marc.info/?l=util-linux-ng&m=148396210506652&w=2 Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* findmnt: add --tree to allow to enable tree output for --mtabKarel Zak2016-12-081-0/+1
| | | | | | | | | | | | The --mtab output is merge from kernel and utab on all modern systems (without classic /etc/mtab). It means we have all necessary information to generate tree output. For the backward compatibility --mtab is the list by default, the new option --tree allows to override the default and enable tree always when the table contains child-parent relations. Signed-off-by: Karel Zak <kzak@redhat.com>
* wall: check -g GIDKarel Zak2016-12-021-1/+1
| | | | | | Based on comments from Sami Kerola. Signed-off-by: Karel Zak <kzak@redhat.com>
* wall: add --group optionJim Patterson2016-12-021-0/+4
| | | | | | | | | | | | | | | | The wall command on AIX supports a "-g" option to limit the message to a group of users by gid. Add compatibility to the Linux version. Thanks to Sami Kerola <kerolasa@iki.fi> for an initial skeleton implementation. [kzak@redhat.com: - rename max to ngroups - add free_group_workspace() - some cosmetic changes] Reference: http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds6/wall.htm Signed-off-by: Jim Patterson <jimp@wegrok.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* Fix: list all block device from /dev and all symbolic links to block devicesRichard Yann2016-10-041-1/+1
| | | | Before fix "fsck -y /d<tab>" will never show LVM VG from multipath or mapped devices
* bash-completion: update chrt completionSami Kerola2016-04-041-13/+27
| | | | | | | | | | | | Add couple missing options, and make the completion overall work better. That said completion is still incomplete, pardon the pun. After user has specified policy then giving a hint what priority needs to be specified is theoretically possible, but such hint is not given. There does not seem to be easy way to know when user wants stops specifying options and move to defining priority in: chrt [options] [prio] [command|pid]. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: install missing bash completionsRuediger Meier2016-03-171-0/+5
| | | | | | | We haven't installed these files since three years. Hopefully they will work. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* bash-completion: lsns: add missing completion fileSami Kerola2016-03-142-0/+59
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: lslogins: add missing completion fileSami Kerola2016-03-142-0/+79
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: ipcmk: add missing completion fileSami Kerola2016-03-142-0/+30
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: fsck.cramfs, isosize: find files an argumentSami Kerola2016-03-142-4/+18
| | | | | | | Earlier completion suggested only options for the command, this changes options to be proposed when first character of an argument is dash. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: fstrim: use mountpoint, not deviceAndreas Henriksson2015-11-131-1/+1
| | | | | | | | | fstrim takes mountpoint as argument but the bash completion was completing it to a device node. Addresses: http://bugs.debian.org/804833 Reported-by: Ritesh Raj Sarraf <rrs@debian.org> Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* bash-completion: add cal --spanKarel Zak2015-11-051-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: curly brace missed for findmntAlexander Kuleshov2015-10-021-1/+1
| | | | | | | | | | | | | This patch provides fix for bash-completion/fndmt script. There is curly brace missed in the completion generation for the -M/--mountpoint option. In other way we will get following messages: bash: /etc/bash_completion.d/findmnt: line 91: unexpected EOF while looking for matching `)' bash: /etc/bash_completion.d/findmnt: line 141: syntax error: unexpected end of file Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
* bash-completion: update few options changed since v2.26Sami Kerola2015-08-035-40/+63
| | | | | | | | Attempt to find and update all changes to command line options that has not been reflected in bash-completion files in between versions v2.26 to v2.27-rc1. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fsck.minix: introduce long options to the commandSami Kerola2015-07-301-6/+6
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs.minix: introduce long options to the commandSami Kerola2015-07-301-9/+7Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* sfdisk: add --list-freeKarel Zak2015-07-281-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: new command to list IPC facilitiesKarel Zak2015-07-202-0/+68
| | | | | | Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* bash-completion: cal: add --twelve and --color optionsSami Kerola2015-07-151-7/+14
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* rtcwake: add --list-modesSami Kerola2015-06-291-1/+1
| | | | | | | | | | | Commit ece44f19f423408f576f348fed2845c876d72c6e missed freeze mode, which to a simple patch adding the missing argument but Karel pointed out it would be better to make the rtcwake to tell what arguments are supported so that possible changes end up to be automatically correct in bash completion. Proposed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* rtcwake: add human readable --date timestamp formatSami Kerola2015-06-291-1/+6
| | | | | Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: remove unused variables [shellcheck]Boris Egorov2015-06-087-7/+5Star
| | | | | | Fix shellcheck SC2034 warnings. Signed-off-by: Boris Egorov <egorov@linux.com>
* bash-completion: sync lscpu completion with codeBoris Egorov2015-06-081-1/+1
| | | | | | Remove unexistent option, add two not listed in completion. Signed-off-by: Boris Egorov <egorov@linux.com>
* bash-completion: handle comma-separated optionsBoris Egorov2015-06-0813-81/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This solution can become messy when you have too many options listed, because it repeats all of them. For example, after invoking completion with this input: $ partx --output END,SECTORS,SCHEME,START, You got these completions: END,SECTORS,SCHEME,START,FLAGS, END,SECTORS,SCHEME,START,NR, END,SECTORS,SCHEME,START,TYPE, END,SECTORS,SCHEME,START,NAME, END,SECTORS,SCHEME,START,SIZE, END,SECTORS,SCHEME,START,UUID, Nevertheless, it works even with numbers (listed options properly excluded from completion). Try to invoke completion after 'chcpu --disable ' or 'lsblk --exclude ' to see it in action. Few issues remained: * completion interrupts after encountering ':' in listed option, like in 'MAJ:MIN' in lsblk, losetup. * lscpu completion is broken: it inserts space after '--extended', but lscpu assumes there is no space after this option. It also doesn't complete '--parse' option. * some completion options are outdated (for example, lscpu MMHZ). We need to sync them with code. Fix for lscpu follows. Signed-off-by: Boris Egorov <egorov@linux.com>
* logger: add --skip-empty-lines to prevent logging empty linesRainer Gerhards2015-03-101-1/+1
| | | | | | | | | | | Empty log messages are generally considered useless. This option enables to turn them off when processing files (including stdin). [kzak@redhat.com: - rename --skip-empty-lines to --skip-empty, - add the option to getopt_long(), - add the option to bash-completion] Signed-off-by: Karel Zak <kzak@redhat.com>
* logger: permit to send messages larger than 1024 charactersRainer Gerhards2015-03-101-1/+1
| | | | | | | | | | | | | | | | | | This is an important capability that has been specified in RFC5424. However, messages larger than 1024 chars are being accepted for years now by at least rsyslog and syslog-ng. This patch adds the option --size to permit setting a new max size, with 1024 being the default. Note that the size limit is only approximative, as we do not take the header size in account (RFC talks about total message length). [[kzak@redhat.com: - add 'S' to getopt_long(), - rename --message-size to --size - add the option to bash-completion] Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: Invoke actual commands to be completed, not basenamesVille Skyttä2014-11-187-11/+11
| | | | | Addresses partially: http://bugs.debian.org/769462 Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* bash-completion: use swapon label and uuid listing supportSami Kerola2014-10-312-20/+4Star
| | | | | | | Simplifies the script, and makes swapoff to work for files when get requests by label or uuid. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: stop being clever when listing block devicesSami Kerola2014-10-3117-62/+18Star
| | | | | | | | | | | Various commands such as blkid, cfdisk, fdisk, delpart, and so on listed only partitions and missed for example disks and volume groups. The right thing to do is to list all block devices in all for all commands performing operations with them. This might occasionally list unexpected devices that I think is lesser bad than missing some. Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764488 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* bash-completion: fix runuser installMike Frysinger2014-10-311-0/+4
| | | | | | | | The runuser symlink used to depend on su being enabled, but a refactoring broke that. So if you build with runuser enabled but not su, you end up with a broken symlink. Rework the logic so it works in both cases. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix bash-completion Makemodule optionsStanislav Brabec2014-08-111-1/+1
|
* zramctl: add bash completion scriptSami Kerola2014-08-112-0/+54
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: add logger protocol notes to manual pageSami Kerola2014-07-281-1/+1
| | | | | | | | Inform about rfc5424 support, how to control what it includes to submission, and that it is the new default when sending syslog messages to remote server without specifying protocol. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* various: erase all traces of the long-obsolete ext filesystemBenno Schulenberg2014-07-283-3/+4
| | | | | | The same argument as for xiafs: dead for over ten years. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* various: erase all traces of the long-obsolete xiafsBenno Schulenberg2014-07-283-4/+3Star
| | | | | | | | The xiafs filesystem was removed from the kernel fifteen years ago, and any kernel that contained it reached end of life ten years ago. It's time to stop mentioning it in the mount man page and elsewhere. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* bash-completion: update fallocate, fstrim and lsblkKarel Zak2014-06-253-10/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: update cfdiskKarel Zak2014-06-251-21/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: update fdiskKarel Zak2014-06-251-7/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup bash-completion/Karel Zak2014-05-211-154/+170
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add BUILD_CHRTKarel Zak2014-05-211-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setterm: correct usage() bright color argumentSami Kerola2014-05-191-3/+12
| | | | | | | This has been wrong since commit 2dc8716. The bright is a prefix attribute to other colors. Signed-off-by: Sami Kerola <kerolasa@iki.fi>