From f9e9d2d08d4b5efda4812dc59a2eb4dc02ce4c69 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 7 Mar 2015 19:18:11 -0500 Subject: [PATCH] somewhat silly new command "whoareyou" that makes the computer divulge its name. --- scripts/core/common.alias | 1 + scripts/core/functions.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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() -- 2.34.1