diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..99c3911 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/plugin-apt.iml b/.idea/plugin-apt.iml new file mode 100644 index 0000000..0c8867d --- /dev/null +++ b/.idea/plugin-apt.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/completions/apt.fish b/completions/apt.fish index 5020a66..7899c2c 100644 --- a/completions/apt.fish +++ b/completions/apt.fish @@ -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 diff --git a/functions/apt.fish b/functions/apt.fish index 7f25a8e..0788894 100755 --- a/functions/apt.fish +++ b/functions/apt.fish @@ -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 diff --git a/functions/apt.help.fish b/functions/apt.help.fish index 6739451..ffc1ee5 100644 --- a/functions/apt.help.fish +++ b/functions/apt.help.fish @@ -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.