From 977025272c4b3fdcebaa6185b890eb67e42475c4 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 19 Oct 2023 11:33:46 -0400 Subject: [PATCH] debug --- configs/shells/bash/.bashrc | 2 ++ configs/shells/bash/info.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/shells/bash/.bashrc b/configs/shells/bash/.bashrc index 9b5f2f8..c0850d3 100644 --- a/configs/shells/bash/.bashrc +++ b/configs/shells/bash/.bashrc @@ -2,9 +2,11 @@ export EWCONFIG_ROOT="$HOME/.config/ewconfig" # Show some host info +echo "info" . $EWCONFIG_ROOT/configs/shells/bash/info.sh # Load macros +echo "macros" . $EWCONFIG_ROOT/configs/shells/bash/macros.sh # I always want my ~/bin to be in my PATH diff --git a/configs/shells/bash/info.sh b/configs/shells/bash/info.sh index dc63aa5..86061c1 100644 --- a/configs/shells/bash/info.sh +++ b/configs/shells/bash/info.sh @@ -1,4 +1,5 @@ +echo "in info" # Define red and green based on the shell if [ -n "$BASH_VERSION" ]; then red='\033[0;31m' @@ -15,7 +16,7 @@ if [ $(uname -s | grep -c BSD) -gt 0 ]; then # BSD elif [ $(uname -s | grep -c Msys) -gt 0 ]; then # Windows echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)" - + else # Linux-y things echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)" echo -e "${green}Uptime:$reset_color $(uptime -p)"