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

5 lines
146 B
VimL
Raw Normal View History

2023-12-23 20:13:47 -07:00
augroup checkBash
au!
au BufRead,BufNewFile * if len(match(getline(1), '\v#![a-z/]* ?bash')) == 1 | set filetype=bash | endif
augroup END