[bash] disable shellcheck warnings on macOS PATH fix
SC2123 warns that the PATH variable is being manipulated, but this is exactly the intention here. SC1091 warns that /etc/profile cannot be checked. This is fine, as this file is provided by the platform and there is no need to check it here.
This commit is contained in:
parent
2a19e95ae5
commit
93cea206a6
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
|||
|
||||
# Prevent path_helper from messing with the PATH when starting tmux.
|
||||
# See: https://superuser.com/a/583502
|
||||
# shellcheck disable=SC2123 # PATH is being intentionally manipulated here.
|
||||
# shellcheck disable=SC1091 # /etc/profile is provided by macOS.
|
||||
[ "$(uname)" == "Darwin" ] && { PATH=""; source /etc/profile; }
|
||||
|
||||
prepend_dir() { # 1: dir to add, 2: variable to manipulate
|
||||
|
|
Loading…
Add table
Reference in a new issue