shellsheck fixed

This commit is contained in:
Jonas Forsberg 2021-12-14 15:15:37 +01:00
parent 0df9818314
commit fcf3420b22
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

13
.bashrc
View File

@ -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