+function ipcsrmall: Remove shared memory + semaphores from: ipcs(1)
authorlace <>
Sun, 18 Dec 2005 03:55:23 +0000 (03:55 +0000)
committerlace <>
Sun, 18 Dec 2005 03:55:23 +0000 (03:55 +0000)
+function eog: Always open single window. And never ever ask again.

.bashrc

diff --git a/.bashrc b/.bashrc
index ad1a856..ad2a9df 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -228,6 +228,8 @@ function exx { cd "`unset exx;exx "$@"|tee /proc/self/fd/2|tail -n1|sed -n 's/^e
 function revlines { perl -e 'print reverse <>;'; }; export -f revlines
 function debuginfo { if test -n "$*";then echo "$*";else cat;fi \
        |xargs rpm -qf|xargs rpmquery --qf '%{SOURCERPM}\n'|sed 's/-[^-]*-[^-]*[.]src[.]rpm$/-debuginfo/'|sort -u; }
+function ipcsrmall { ipcs|awk '/- Shared Memory/{x="-m"}/- Semaphore/{x="-s"}/^0x/{print "ipcrm "x" "$2}'; }
+function eog {(unset eog; touch /tmp/eog.$$;eog "$@" {,,,,,,,,,}/tmp/eog.$$;rm -f /tmp/eog.$$; );}; export -f eog
 
 ulimit -S -c 0
 set +H