From 6282f5bc4dd89940aa4d8ba829c4589176ada8c6 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Wed, 20 Nov 2013 10:08:59 -0800 Subject: [PATCH] carat.sh: add -w option, change default behavior Signed-off-by: Colin McCabe --- carat.sh | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/carat.sh b/carat.sh index 07a68fb..a96b680 100755 --- a/carat.sh +++ b/carat.sh @@ -15,4 +15,8 @@ # Colin McCabe # -fold -s -w 75 | sed 's/^/> /' +if [[ "$1" == "-w" ]]; then + fold -s -w 75 | sed 's/^/ > /' +else + sed 's/^/ > /' +fi -- 1.6.6.rc1.39.g9a42