summaryrefslogtreecommitdiff
path: root/ale_linters/sh/shell.vim
diff options
context:
space:
mode:
authorAdriaan Zonnenberg <amz@adriaan.xyz>2017-04-29 20:57:34 +0200
committerAdriaan Zonnenberg <amz@adriaan.xyz>2017-04-30 22:38:28 +0200
commitb0bba34ea2228ac73ecc63f1c459daf2a02066c4 (patch)
treebe9a9718b08d72aaa772f77508d7a4a1e839a279 /ale_linters/sh/shell.vim
parent6547adcf2fc2b262aa5c8047f5687d6e65351087 (diff)
downloadale-b0bba34ea2228ac73ecc63f1c459daf2a02066c4.zip
Rename g:ale_linters_sh_* to g:ale_sh_*
Diffstat (limited to 'ale_linters/sh/shell.vim')
-rw-r--r--ale_linters/sh/shell.vim15
1 files changed, 10 insertions, 5 deletions
diff --git a/ale_linters/sh/shell.vim b/ale_linters/sh/shell.vim
index cd363091..3b017b0e 100644
--- a/ale_linters/sh/shell.vim
+++ b/ale_linters/sh/shell.vim
@@ -1,13 +1,18 @@
" Author: w0rp <devw0rp@gmail.com>
" Description: Lints sh files using bash -n
+" Backwards compatibility
+if exists('g:ale_linters_sh_shell_default_shell')
+ let g:ale_sh_shell_default_shell = g:ale_linters_sh_shell_default_shell
+endif
+
" This option can be changed to change the default shell when the shell
" cannot be taken from the hashbang line.
-if !exists('g:ale_linters_sh_shell_default_shell')
- let g:ale_linters_sh_shell_default_shell = fnamemodify($SHELL, ':t')
+if !exists('g:ale_sh_shell_default_shell')
+ let g:ale_sh_shell_default_shell = fnamemodify($SHELL, ':t')
- if g:ale_linters_sh_shell_default_shell ==# ''
- let g:ale_linters_sh_shell_default_shell = 'bash'
+ if g:ale_sh_shell_default_shell ==# ''
+ let g:ale_sh_shell_default_shell = 'bash'
endif
endif
@@ -26,7 +31,7 @@ function! ale_linters#sh#shell#GetExecutable(buffer) abort
endfor
endif
- return ale#Var(a:buffer, 'linters_sh_shell_default_shell')
+ return ale#Var(a:buffer, 'sh_shell_default_shell')
endfunction
function! ale_linters#sh#shell#GetCommand(buffer) abort