diff --git a/functions b/functions index 23a7a29..4a8a3c7 100644 --- a/functions +++ b/functions @@ -44,6 +44,6 @@ function lab() { tput setaf 7; tput bold; echo -en "Lab: " tput sgr0 tput setaf 7 - echo -en $(curl -s https://cpsecurity.club/api/v1/status | jq ".data.status" | tr -d "\"") + echo $(curl -s https://cpsecurity.club/api/v1/status | jq ".data.status" | tr -d "\"") tput sgr0 } diff --git a/zshrc b/zshrc index ed6fba4..ef72b5e 100644 --- a/zshrc +++ b/zshrc @@ -56,5 +56,8 @@ if [ "$OSTYPE" = "Linux" ]; then echo "" elif [ "$OSTYPE" = "Darwin" ]; then ssh-add -K ~/.ssh/id_rsa 2>/dev/null - batt + LAPTOP=$(system_profiler SPHardwareDataType | grep "Model Name" | grep "Book") + if [ "$LAPTOP" != "" ]; then + batt + fi fi