dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 2cc88d28c65653244b2f530992c688088aaa7de4
parent 7c3e1f2584c28911c253ef96cafae2ece1fe3c26
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  2 Jan 2022 23:48:26 +0000

.c/n/f/rcshell.vim: match shebangs with arguments

Diffstat:
M.config/nvim/ftdetect/rcshell.vim | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/.config/nvim/ftdetect/rcshell.vim b/.config/nvim/ftdetect/rcshell.vim @@ -2,10 +2,8 @@ autocmd BufRead,BufNewFile .rcrc*,rcrc,*.rc, set filetype=rcshell function! s:DetectRcShell() let shebang = getline(1) - if shebang =~# '\(/\|\s\)rc$' - if shebang =~# '^#!' - set filetype=rcshell - endif + if shebang =~# '#!.*rc.*' + set filetype=rcshell endif endfunction