figured out how to check specifically for if grep works
parent
a28a0daffd
commit
eea81f0c9c
12
.zshrc
12
.zshrc
|
|
@ -1,12 +1,6 @@
|
||||||
grep --help >/dev/null 2>&1
|
GREPOUTPUT=$( grep --help 2>&1 )
|
||||||
RESULT=$?
|
RESULT=$( echo $GREPOUTPUT | grep gnu )
|
||||||
IsGNU=null
|
if [ "${RESULT}" != "" ]; then
|
||||||
if [ $RESULT -eq 0 ]; then
|
|
||||||
$IsGNU = true
|
|
||||||
else
|
|
||||||
$IsGNU = false
|
|
||||||
fi
|
|
||||||
if [ "${IsGNU}}" = "true" ]; then
|
|
||||||
#source ~/.bash_profile
|
#source ~/.bash_profile
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -40,3 +40,7 @@
|
||||||
2025/03/13 (15:09:25) | ===> btop++ v.1.4.0
|
2025/03/13 (15:09:25) | ===> btop++ v.1.4.0
|
||||||
2025/03/13 (15:09:25) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
|
2025/03/13 (15:09:25) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
|
||||||
2025/03/13 (15:09:25) | WARNING: Intel GPU: Failed to initialize PMU
|
2025/03/13 (15:09:25) | WARNING: Intel GPU: Failed to initialize PMU
|
||||||
|
|
||||||
|
2025/04/03 (11:17:42) | ===> btop++ v.1.4.0
|
||||||
|
2025/04/03 (11:17:42) | WARNING: NVML: Failed to get maximum GPU power draw, defaulting to 225W: Not Supported
|
||||||
|
2025/04/03 (11:17:42) | WARNING: Intel GPU: Failed to initialize PMU
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue