changeset 330:0da3813d76d0

add buffer function
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 17 Jun 2013 01:24:45 -0700
parents aae9b0776e60
children 133eb1ade1dd
files .bashrc
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Sat Jun 08 08:53:18 2013 -0700
+++ b/.bashrc	Mon Jun 17 01:24:45 2013 -0700
@@ -282,6 +282,11 @@
     mv "$NEWNAME" "$2"
 }
 
+buffer() {
+  # temporary buffer with cat and /dev/null
+  cat > /dev/null
+}
+
 ### `which` commands
 
 realwhich() {
@@ -422,6 +427,8 @@
     echo "$HOME/web/blog/k0s/entries/public/$1"
 }
 
+###
+
 flatten() {
   directory=$PWD
   if [ "$#" == "1" ]