dotfiles/vim/.vim/ftdetect/bash.vim

5 lines
146 B
VimL
Raw Normal View History

2022-09-06 23:34:19 -06:00
augroup checkBash
au!
au BufRead,BufNewFile * if len(match(getline(1), '\v#![a-z/]* ?bash')) == 1 | set filetype=bash | endif
augroup END