aboutsummaryrefslogblamecommitdiff
path: root/vim/after/ftdetect/sh.vim
blob: 73bbfffeb35cf0cbf7015aca480c34c88095a96e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                  
                          
                                    
                         

                          
                                                  
                          
                                            
                              

                          
                                                   
                          
                                                              
                          
                          
" Names/paths of things that are Bash shell script
autocmd BufNewFile,BufRead
    \ **/.dotfiles/bash/**,bash-fc-*
    \ let b:is_bash = 1 |
    \ setlocal filetype=sh

" Names/paths of things that are Korn shell script
autocmd BufNewFile,BufRead
    \ **/.dotfiles/pdksh/**,.pdkshrc,*.pdksh
    \ let b: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 b:is_posix = 1 |
    \ setlocal filetype=sh