Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370387 - app-vim/gentoo-syntax-20101212 doesn't highlight files in /etc/local.d
Summary: app-vim/gentoo-syntax-20101212 doesn't highlight files in /etc/local.d
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Dror Levin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 03:54 UTC by nico
Modified: 2012-01-03 01:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nico 2011-06-07 03:54:16 UTC
When editing/viewing a script in /etc/local.d there is no syntax highlighting.

Reproducible: Always

Steps to Reproduce:
1. Edit /etc/local.d/whatever.start
2. type :set ft=
Actual Results:  
'filetype' is unset

Expected Results:  
'filetype' should be gentoo-init-d
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2012-01-03 01:18:34 UTC
Those files can be written in any language so they're not init scripts.
Add a proper shebang to your scripts and be done with it.

<snip>
for file in /etc/local.d/*.start ; do
    [ -x "$file" ] && "$file"
done
</snip>