Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bash-completion script for our "apt" script. #25

Merged
merged 1 commit into from Nov 10, 2014
Merged

Added bash-completion script for our "apt" script. #25

merged 1 commit into from Nov 10, 2014

Conversation

monsta
Copy link
Contributor

@monsta monsta commented Nov 10, 2014

The script is taken from:
http://forums.linuxmint.com/viewtopic.php?f=148&t=82867

Big thanks to the original author.

Differences from the original script:

  • fixed _comp_dpkg_installed_packages and _rpm_installed_packages
    calls for modern systems (thanks to http://askubuntu.com/a/445638);
  • made it recognize the "policy" command;
  • made it complete the "version" command's argument only for the
    installed packages, because otherwise the output of that command
    would be empty.

Fixes #4.

The script is taken from:
http://forums.linuxmint.com/viewtopic.php?f=148&t=82867

Big thanks to the original author.

Differences from the original script:
- fixed _comp_dpkg_installed_packages and _rpm_installed_packages
  calls for modern systems (thanks to http://askubuntu.com/a/445638);
- made it recognize the "policy" command;
- made it complete the "version" command's argument only for the
  installed packages, because otherwise the output of that command
  would be empty.

Fixes #4.
clefebvre added a commit that referenced this pull request Nov 10, 2014
Added bash-completion script for our "apt" script.
@clefebvre clefebvre merged commit 9e43bdc into linuxmint:master Nov 10, 2014
@clefebvre
Copy link
Member

Brilliant :)

@monsta monsta deleted the bash-completion-for-apt branch November 10, 2014 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please add this bash-completion script for /usr/local/bin/apt
2 participants