aboutsummaryrefslogtreecommitdiff
blob: d3ecd9ba6d3549a16dca0b67c71d317ad400f5e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# $1 is a number, N. The top N directories that are consuming space. Defaults to
# all.

pushd $(portageq get_repo_path / gentoo) >/dev/null
if [[ -z $1 ]]; then
	du -h */*/files | sort -nr
else
	du -h */*/files | sort -nr | head -n $1
fi
popd >/dev/null
echo
echo $(emerge --info | grep Timestamp)