debug
This commit is contained in:
parent
39205aee76
commit
977025272c
@ -2,9 +2,11 @@
|
|||||||
export EWCONFIG_ROOT="$HOME/.config/ewconfig"
|
export EWCONFIG_ROOT="$HOME/.config/ewconfig"
|
||||||
|
|
||||||
# Show some host info
|
# Show some host info
|
||||||
|
echo "info"
|
||||||
. $EWCONFIG_ROOT/configs/shells/bash/info.sh
|
. $EWCONFIG_ROOT/configs/shells/bash/info.sh
|
||||||
|
|
||||||
# Load macros
|
# Load macros
|
||||||
|
echo "macros"
|
||||||
. $EWCONFIG_ROOT/configs/shells/bash/macros.sh
|
. $EWCONFIG_ROOT/configs/shells/bash/macros.sh
|
||||||
|
|
||||||
# I always want my ~/bin to be in my PATH
|
# I always want my ~/bin to be in my PATH
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
echo "in info"
|
||||||
# Define red and green based on the shell
|
# Define red and green based on the shell
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
red='\033[0;31m'
|
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
|
elif [ $(uname -s | grep -c Msys) -gt 0 ]; then # Windows
|
||||||
echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)"
|
echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)"
|
||||||
|
|
||||||
else # Linux-y things
|
else # Linux-y things
|
||||||
echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)"
|
echo -e "${green}Platform:$reset_color $(uname -o) $(uname -r)"
|
||||||
echo -e "${green}Uptime:$reset_color $(uptime -p)"
|
echo -e "${green}Uptime:$reset_color $(uptime -p)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user