summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 57abcf9..36640e7 100644
--- a/bashrc
+++ b/bashrc
@@ -51,6 +51,14 @@ cov() {
[ "${2}" != "0" ] && xdg-open file://$src/bin/cov/html/index.html
}
+sizes() {
+ find -path */release/* -type f -perm -111 -delete
+ build variant=release
+ find -path */release/* -type f -perm -111 | sort | xargs -r strip --strip-unneeded
+ find -path */release/* -type f -perm -111 -printf "%p\t%s\n" | sort -k1 | \
+ column -N path,size -R path,size -t -s $'\t' | tee ~/new
+}
+
PATH="/usr/lib/ccache/bin:$PATH"
CORES=$(grep core\ id /proc/cpuinfo | sort -u | wc -l)
export FEATURES="ccache"