Skip to content

Commit

Permalink
Adding list and installed subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
btajuddin committed Jan 3, 2023
1 parent defc520 commit 97c81d8
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/plugin-apt.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions completions/apt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ complete -c apt -n "__fish_use_subcommand" -a clean -f

complete -c apt -n "__fish_use_subcommand" -a "install in" -x

complete -c apt -n "__fish_use_subcommand" -a installed -f

complete -c apt -n "__fish_use_subcommand" -a list -f

complete -c apt -n "__fish_use_subcommand" -a policy -f

complete -c apt -n "__fish_use_subcommand" -a ppa -x
Expand Down
6 changes: 6 additions & 0 deletions functions/apt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ function apt -d "Short and friendly command wrapper for APT"
case install in
sudo apt-get $apt_get_flags install $argv[2..-1]

case installed
command apt list --installed $argv[2..-1]

case list
command apt list $argv[2..-1]

case policy
env LANG=C apt-cache policy

Expand Down
2 changes: 2 additions & 0 deletions functions/apt.help.fish
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Commands:
check Verify that there are no broken dependencies.
clean Erase old downloaded archive files.
install [Alias: in] Install packages.
installed List all installed packages (can be filtered)
list List all packages (can be filtered)
policy Shows policy settings.
ppa Adds or removes PPA packages sources.
purge Removes packages and their configuration files.
Expand Down

0 comments on commit 97c81d8

Please sign in to comment.