hide shellcheck warnings
parent
90b4fd8a73
commit
d12ded88f4
|
@ -1,11 +1,14 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# shellcheck disable=SC2164
|
||||
if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi
|
||||
# shellcheck disable=SC2164
|
||||
if [ -d "/usr$HOME" ] ; then export HOME=/usr$HOME ; cd ; fi
|
||||
|
||||
for BASHRC in /etc/bashrc /etc/bash.bashrc /etc/bash/bashrc ; do
|
||||
if [ -f "$BASHRC" ] ; then
|
||||
# shellcheck source=/dev/null
|
||||
. "$BASHRC"
|
||||
fi
|
||||
done
|
||||
|
@ -13,7 +16,7 @@ unset BASHRC
|
|||
|
||||
EDITOR=nvim; export EDITOR
|
||||
|
||||
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
||||
if ! [[ "$PATH" =~ $HOME/.local/bin:$HOME/bin: ]]
|
||||
then
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
fi
|
||||
|
@ -23,6 +26,7 @@ export PATH
|
|||
if [ -d ~/.bashrc.d ]; then
|
||||
for rc in ~/.bashrc.d/*; do
|
||||
if [ -f "$rc" ]; then
|
||||
# shellcheck source=/dev/null
|
||||
. "$rc"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue