diff --git a/bashrc b/bashrc index 0b2b956..ac183aa 100644 --- a/bashrc +++ b/bashrc @@ -29,7 +29,7 @@ export NVM_DIR="$HOME/.nvm" eval "$(lua $HOME/.z.lua/z.lua --init bash enhanced once echo)" _mem_available=$(awk '/MemAvailable/ { printf "%.1f \n", $2/1024/1024 }' /proc/meminfo) -_updates_available="$(cat $HOME/.checkupdates)" +_updates_available="$(wc -l $HOME/.checkupdates | cut -d' ' -f1)" [ -z $_updates_available ] && _updates_available="0" echo "Remember your aliases:" @@ -39,6 +39,9 @@ echo " mc newsh smartresize" echo " b1 kvm mike p1 pve" echo "" +echo "Remember your commands:" +echo " vimv 'flameshot gui'" + if [ ${_mem_available%.*} -lt 5 ] ; then echo -n "Memory available: " [ ${_mem_available%.*} -lt 3 ] && echo -ne "\033[0;31m"