aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftdetect/sh.vim
blob: 3a9fa531233cb16abff1ec64c183e29ae5a0f013 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
" Names/paths of things that are Bash shell script
autocmd BufNewFile,BufRead
    \ **/.dotfiles/bash/**,bash-fc-*
    \ let g:is_bash = 1 |
    \ setlocal filetype=sh

" Names/paths of things that are Korn shell script
autocmd BufNewFile,BufRead
    \ **/.dotfiles/pdksh/**,.pdkshrc,*.pdksh
    \ let g:is_kornshell = 1 |
    \ setlocal filetype=sh

" Names/paths of things that are POSIX shell script
autocmd BufNewFile,BufRead
    \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/*
    \ let g:is_posix = 1 |
    \ setlocal filetype=sh