Hello Christian,
Thanks for the help. It is actually a Bash script with filename FireTIG (without .sh extension) I made myself. Where can I find the syntax file for Bash?
Grtz
As a pointless programming tip, I put the proper extension on my script code files (.sh, .pl, etc) and then use make to copy&strip the extension/chmod them into a bin area. While this seems unnecessary, besides making it easier for vim know how to colorize the code, it also allows the use of find/grep for searching.
Willem
https://outsideit.net
FireTIG is just one part of a whole set of scripts built around monitoring and automation. All those scripts start with Fire, for example:
- FireCentOS
- FireRunDeck
- FireMotD
- FireRenewal
- FireSnapshot
- FireTIG
- FireConf
- FireBerry
- FireNagios
I choose this several years ago. If I had to change all this, it would take me a lot of time. FireMotD is the only one I made public on GitHub.
https://github.com/willemdh/FireMotD
(Just trying to explain how I came to this)
Grtz and tx for the input all.
Willem
Why Does it say ASTRO-ONLY by the way?
Grtz
You can find the text here: https://raw.githubusercontent.com/willemdh/FireMotD/master/FireMotD
Problem seems to start at line 211, maybe related to the '<<<'?
MemFreeB="$(cat /proc/meminfo | grep MemFree | awk {'print $2'})"
MemTotalB="$(cat /proc/meminfo | grep MemTotal | awk {'print $2'})"
MemUsedB="$(expr $MemTotalB - $MemFreeB)"
MemFree="$(printf "%0.2f\n" $(bc -q <<< scale=2\;$MemFreeB/1024/1024))"
WriteLog Verbose Info "MemFree: $MemFree"
MemUsed="$(printf "%0.2f\n" $(bc -q <<< scale=2\;$MemUsedB/1024/1024))"
WriteLog Verbose Info "MemUsed: $MemUsed"
MemTotal="$(printf "%0.2f\n" $(bc -q <<< scale=2\;$MemTotalB/1024/1024))"
WriteLog Verbose Info "MemTotal: $MemTotal"
Grtz and tx
Willem
Sorry for the very late answer, having an extremely busy time here. But good news, I just downloaded the latest version 165 of sh.vim and the syntax coloring issue I was created this thread for is solved.
People can now vim my FireMotD (https://github.com/willemdh/FireMotD) with full color syntax. :)
Thanks a lot.
Willem
https://outsideit.net