summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ale_linters/sh/shell.vim2
-rw-r--r--doc/ale-sh.txt3
2 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/sh/shell.vim b/ale_linters/sh/shell.vim
index 3b017b0e..1539e8b3 100644
--- a/ale_linters/sh/shell.vim
+++ b/ale_linters/sh/shell.vim
@@ -11,7 +11,7 @@ endif
if !exists('g:ale_sh_shell_default_shell')
let g:ale_sh_shell_default_shell = fnamemodify($SHELL, ':t')
- if g:ale_sh_shell_default_shell ==# ''
+ if g:ale_sh_shell_default_shell ==# '' || g:ale_sh_shell_default_shell ==# 'fish'
let g:ale_sh_shell_default_shell = 'bash'
endif
endif
diff --git a/doc/ale-sh.txt b/doc/ale-sh.txt
index 1d9f12fa..e8c29ddc 100644
--- a/doc/ale-sh.txt
+++ b/doc/ale-sh.txt
@@ -8,7 +8,8 @@ shell *ale-sh-shell*
g:ale_sh_shell_default_shell *g:ale_sh_shell_default_shell*
*b:ale_sh_shell_default_shell*
Type: |String|
- Default: The current shell (`$SHELL`) or `'bash'` if that cannot be read.
+ Default: The current shell (`$SHELL`). Falls back to `'bash'` if that cannot be
+ read or if the current shell is `'fish'`.
When ALE runs the linter for shells with the `-n` flag, it will attempt to
read the shell from the shebang (`#!`) line from the shell script to