Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
ae2f6f34
Commit
ae2f6f34
authored
Mar 11, 2014
by
Josh Chih-Hsueh Huang
Browse files
List pkgs by size
parent
6b3c9537
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/debian/debian.plugin.zsh
View file @
ae2f6f34
...
...
@@ -217,3 +217,11 @@ kerndeb () {
"
$revision
"
kernel_image kernel_headers
}
# List packages by size
function
apt-list-packages
{
dpkg-query
-W
--showformat
=
'${Installed-Size} ${Package} ${Status}\n'
|
\
grep
-v
deinstall |
\
sort
-n
|
\
awk
'{print $1" "$2}'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment