aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect/zsh.vim
blob: 085563618810689f8de0a62de49832264323ea04 (plain) (blame)
1
2
3
4
5
6
7
8
9
" Z shell files
autocmd BufNewFile,BufRead
      \ *.zsh,.zprofile,zprofile,.zshrc,zshrc
      \ setfiletype zsh
autocmd BufNewFile,BufRead
      \ *
      \   if getline(1) =~# '^#!.*\<zsh\>'
      \ |   setfiletype zsh
      \ | endif