Why?:
- Aptitude is an alternative to apt with a great user interface, so there should
also be some aliases that make using it as easy as with the apt aliases.
This change addresses the need by:
- Add new alias file aptitude.aliases.bash with most of the same Apt aliases
instead using Aptitude
- Also add some new aliases for Aptitude specific features like "why-not"
...to `_bash-it()`.
The norm is for the completion function for, e.g., `teh_cmd`. to be named with the same name and a prepended underscore, i.e. `_teh_cmd`. This alsö reduces namespace confusion, which will be relevant in a future patch.
Removed the copy/paste code, moved it into a reusable function that can
be called from the `local_setup` function as needed. Also simplified the
handling of the $HOME variable since @rico-chet provided a better way of
doing this.
Added completion for reload.
Fixed order in completion
Added unit tests for completion
The variable BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE has to be unset.
Can't use the official v0.4.0 release, since our tests rely on a change
that was made after the release of v0.4.0.
This code currently uses an unversioned commit of the bats-core repo, we
will switch to a supported version once it has been released, e.g.
v0.4.1.