From: Chris Koeritz Date: Sun, 8 Mar 2015 00:18:11 +0000 (-0500) Subject: somewhat silly new command "whoareyou" that makes the computer divulge its name. X-Git-Tag: 2.140.90~701 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=f9e9d2d08d4b5efda4812dc59a2eb4dc02ce4c69;p=feisty_meow.git somewhat silly new command "whoareyou" that makes the computer divulge its name. --- diff --git a/scripts/core/common.alias b/scripts/core/common.alias index 85c6e3dd..1a6896b5 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -89,6 +89,7 @@ alias cputemp='acpi -t' # makes root user's home directory's permissions right. alias reroot='chown -R root:root /root' # yes, these are really helpful... +alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I'\''m very pleased to meet you."' alias whereami='echo whoa dude, try not to think about it...' alias why='echo just because.' diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 8c308e2e..55a45aec 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -14,6 +14,7 @@ if [ $? -eq 0 ]; then fi if [ -z "$skip_all" ]; then + if [ ! -z "$SHELL_DEBUG" ]; then echo function definitions begin... fi @@ -62,7 +63,7 @@ if [ -z "$skip_all" ]; then fi } - # checks the result of the last command that was run, and if it failed, + # checks the result of the last command that was run, and if that failed, # then this complains and exits from bash. the function parameters are # used as the message to print as a complaint. function check_result()