From 2a19e95ae531515b82079da3767cb7b9ae52372d Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 3 Dec 2020 18:33:58 +0100 Subject: [PATCH] [bash] disable shellcheck warning on VIMINIT shellcheck(1) is warning that the single quotes prevent the expression from being expanded. However, this is the desired behavior because this expression is meant to be interpreted by vim(1), not bash(1). --- roles/bash/files/profile | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/bash/files/profile b/roles/bash/files/profile index efce182..2902389 100644 --- a/roles/bash/files/profile +++ b/roles/bash/files/profile @@ -26,6 +26,7 @@ MANPATH="$(unset MANPATH; manpath)" export MANPATH export PAGER=less export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/startup.py" +# shellcheck disable=SC2016 # This expression is to be interpreted by vim, not bash. export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' ##############################################################################