This is somewhat off topic, but related. I recommend creating an alias for nano called
snano that will allow you to easily see syntax highlighting for shell scripts that don't have the .sh extension (such as all the rc scripts, etc).
I add this to my
.profile or /
etc/profile
Code:
alias snano='nano -Y sh'
So for shell scripts without a .sh extension I run snano instead of nano.
Be sure to create or edit /etc/nanorc so that syntax highlighting is activated. If you don't have that file you can use
/usr/doc/nano-VERSION/nanorc.sample to start you off (if I remember correctly uncommenting some lines on the bottom will be enough to activate syntax highlighting).