| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change makes it a bit easier to quickly grasp the changes
about to be performed by apt.
It displays package lists in a columnar format by default,
similar to what `ls` produces for files.
A new long option `--no-list-columns` and an associated
`APT::Get::List-Columns` config setting control the behavior.
Usage example, with 60 column wide terminal:
```
$ sudo apt upgrade |
Reading package lists... Done |
Building dependency tree... Done |
Reading state information... Done |
Calculating upgrade... Done |
The following packages were automatically installed and are |
no longer required: |
libappindicator1 libindicator7 |
libdbusmenu-gtk4 linux-image-5.14.0-4-amd64 |
Use 'sudo apt autoremove' to remove them. |
The following packages have been kept back: |
criu linux-headers-amd64 nvidia-settings |
libxnvctrl0 nvidia-modprobe xwayland |
0 upgraded, 0 newly installed, 0 to remove and 6 not upgrade|
d. |
```
The effect becomes more pronounced with more packages (e.g. when
doing a dist-upgrade).
|
|\
| |
| |
| |
| | |
Don’t bash-complete package names before the command word
See merge request apt-team/apt!221
|
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, package names would get suggested at the cursor position `_`
for a command line like this:
```
~# apt _ install git vim
```
|
| |
| |
| |
| |
| |
| | |
$words[0] contains the first word on the command-line, the name of the
program: apt. Also, the last word already typed on the command-line
might be the command, don’t ignore it.
|
| |
| |
| |
| | |
Closes: #930295
|
|/
|
|
|
|
| |
8ebb95805 missed some places to really bash-complete the autopurge command.
Partially closes #930295
|
|\
| |
| |
| |
| | |
Small tweaks for bash-completion after `apt install`
See merge request apt-team/apt!216
|
| |
| |
| |
| |
| | |
Following a practice from upstream bash-completion. See for example
https://github.com/scop/bash-completion/commit/b807460140aa6dda09eb2af2ecf3afa1971c84c4
|
| |
| |
| |
| |
| |
| |
| | |
argument to `apt install`
This will start by suggesting ./ and ../ which are both fine path
segments for `apt install` to handle later.
|
| |
| |
| |
| |
| | |
Should provide a tiny speed-up when someone already started typing
either one in the current argument.
|
| |
| |
| |
| |
| |
| | |
At the time the bash-completion runs, the ~ (or even ~user) is not yet
expanded to /home/user, so it did not match the existing comparison with
`/*`.
|
|\ \
| | |
| | |
| | |
| | | |
bash-completion: Don’t misidentify short options as commands to `apt`
See merge request apt-team/apt!211
|
| |/
| |
| |
| |
| |
| | |
Previously the comparison would match `-s` with `edit-sources`, `-d`
with `build-dep` etc. and the real commands would not get suggested
after some of the short options.
|
|/
|
|
| |
Closes: #985899
|
|
|
|
|
|
| |
`egrep` has been deprecated in GNU grep since 2007, and in current post
3.7 Git it has been made to emit obsolescence warnings:
https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1
|
| |
|
| |
|
|
|
|
| |
Closes: #861846
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previouosly apt's bash completion was such that, given
$ mkdir xyzzz
$ touch xyzzy.deb xyzzx.two.deb
you'd get
$ apt install xyzz<tab>
xyzzx.two.deb xyzzz/
$ apt install /tmp/foo/xyzz<tab>
xyzzx.two.deb xyzzz/
this is inconsistent (xyzzx.two.deb is listed but not xyzzy.deb), but
worse than that it offered things that apt would not actually
recognise as candidates for install:
$ sudo apt install xyzzx.two.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package xyzzx.two.deb
E: Couldn't find any package by glob 'xyzzx.two.deb'
E: Couldn't find any package by regex 'xyzzx.two.deb'
With this small (trival, really) change, apt's bash completion will
only offer things apt understands, and won't recquire an aditional
period in the filename to offer it:
$ apt install xyzz<tab>^C
$ # (no completions!)
$ apt install ./xyzz<tab>
xyzzx.two.deb xyzzy.deb xyzzz/
$ apt install /tmp/foo/xyzz
xyzzx.two.deb xyzzy.deb xyzzz/
fixes #28
LP: #1645815
|
|
|
|
|
|
|
| |
Having the completions installed only by the packaging was
an oversight.
Gbp-Dch: ignore
|
|
|
|
|
|
|
|
|
| |
This fixes Debian/apt#13 and the launchpad bug listed below,
but is far more advanced. I went through private-cmndline.cc
and looked at the supported options.
LP: #1573547
Thanks: Elias Fröhner and Svyatoslav Gryaznov for the initial work
|
|
Move the completion to completions/bash/apt and install all
bash completions from completions/bash.
Gbp-Dch: ignore
|