From fcf3420b2299d13147b027f9fab44d71c00a8f97 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Tue, 14 Dec 2021 15:15:37 +0100 Subject: [PATCH] shellsheck fixed --- .bashrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 3c07485..133e5a4 100644 --- a/.bashrc +++ b/.bashrc @@ -8,29 +8,36 @@ export EDITOR="vim" #Also add "AddKeysToAgent yes" to ~/.ssh/config export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +# shellcheck disable=2015 +# shellcheck disable=1090 test -s ~/.alias && . ~/.alias || true +# shellcheck disable=1090 export PATH=~/bin:~/.local/bin:"$PATH" +# shellcheck disable=2155 type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH) && export PATH="$PATH":$GOPATH/bin # needed for pw function and gnupg.vim GPG_TTY=$(tty) export GPG_TTY +# shellcheck disable=1090 export PWHOME="$HOME/Nextcloud/passwords" if [[ -d "$HOME"/.bash_completions.d ]];then for file in "$HOME"/.bash_completions.d/*.sh;do + # shellcheck disable=1090 source "$file" done fi # PS1 Prompt +# shellcheck disable=1090 [[ -f "$HOME/.functions/ps1.sh" ]] && source "$HOME/.functions/ps1.sh" +# shellcheck disable=1090 +[[ -d "$HOME/.functions" ]] && for f in ~/.functions/*.sh; do source "$f"; done -[[ -d "$HOME/.functions" ]] && for f in ~/.functions/*.sh; do source $f; done - - +# shellcheck disable=1090 [[ -d "$HOME/.rbenv/bin" ]] && export PATH="$HOME/.rbenv/bin:$PATH" && eval "$(rbenv init -)" #exit with no error