From 552a1414005761a8003e923f12501b3672c8e328 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Oct 2017 14:30:24 +0100 Subject: Add ebuild show image helper --- bashrc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)}) -- cgit v1.2.3