From 39667ea976b1da5b9aed0da8afb61db58d4dd3d5 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 4 Sep 2016 13:16:34 -0400 Subject: [PATCH] swapped out the 'line' separator printing method into the core, since it's actually really very useful, but changed the name to separator/sep since line is already a shell built-in. oops. --- customizing/fred/fred_common.alias | 15 --------------- scripts/core/functions.sh | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/customizing/fred/fred_common.alias b/customizing/fred/fred_common.alias index 743634a6..77f4e48d 100644 --- a/customizing/fred/fred_common.alias +++ b/customizing/fred/fred_common.alias @@ -9,18 +9,3 @@ define_yeti_alias unmoo='sudo umount /z/stuffing ; sudo umount /z/walrus ; sudo # load in the gffs build scripts. source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh" -# just shows a separator line for an 80 column console, or uses the first -# parameter as the number of columns to expect. -function line() -{ - count=$1; shift - if [ -z "$count" ]; then - count=80 - fi - echo - for ((i=0; i < $count - 1; i++)); do - echo -n "=" - done - echo - echo -} diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 21d9d047..0d1be4af 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -551,6 +551,29 @@ return 0 ############## + # just shows a separator line for an 80 column console, or uses the first + # parameter as the number of columns to expect. + function separator() + { + count=$1; shift + if [ -z "$count" ]; then + count=79 + fi + echo + for ((i=0; i < $count - 1; i++)); do + echo -n "=" + done + echo + echo + } + # alias for separator. + function sep() + { + separator $* + } + + ############## + function function_sentinel() { return 0; } if [ ! -z "$SHELL_DEBUG" ]; then echo "feisty meow function definitions done."; fi -- 2.34.1