summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-10-18 14:30:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-10-18 14:30:24 +0100
commit552a1414005761a8003e923f12501b3672c8e328 (patch)
treeb2ed3c8ae9ac2ca86107e449fb6719e0174dae77 /bashrc
parentAdd valgrind wrapper (diff)
downloadutil-552a1414005761a8003e923f12501b3672c8e328.tar.bz2
util-552a1414005761a8003e923f12501b3672c8e328.tar.xz
util-552a1414005761a8003e923f12501b3672c8e328.zip
Add ebuild show image helper
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index c69b2b8..f6a0f56 100644
--- a/bashrc
+++ b/bashrc
@@ -16,6 +16,17 @@ diffWith() {
( gvim -f $diffFile ; rm $diffFile ) &
}
+showimage() {
+ (
+ local pkg
+ pkg=$1
+ pkg="${pkg:=*/*}"
+ cd /var/tmp/portage/$pkg-*/image || return 1
+ find . -not -type d -print0 | xargs -0r ls -lvhF --color=auto
+ du -shc */*
+ )
+}
+
cov() {
src=${1}
src=$(realpath ${src:=$(pwd)})