shellsheck fixed
This commit is contained in:
parent
0df9818314
commit
fcf3420b22
13
.bashrc
13
.bashrc
@ -8,29 +8,36 @@ export EDITOR="vim"
|
|||||||
#Also add "AddKeysToAgent yes" to ~/.ssh/config
|
#Also add "AddKeysToAgent yes" to ~/.ssh/config
|
||||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||||
|
|
||||||
|
# shellcheck disable=2015
|
||||||
|
# shellcheck disable=1090
|
||||||
test -s ~/.alias && . ~/.alias || true
|
test -s ~/.alias && . ~/.alias || true
|
||||||
|
# shellcheck disable=1090
|
||||||
export PATH=~/bin:~/.local/bin:"$PATH"
|
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
|
type go >/dev/null 2>&1 && export GOPATH=$(go env GOPATH) && export PATH="$PATH":$GOPATH/bin
|
||||||
|
|
||||||
# needed for pw function and gnupg.vim
|
# needed for pw function and gnupg.vim
|
||||||
GPG_TTY=$(tty)
|
GPG_TTY=$(tty)
|
||||||
export GPG_TTY
|
export GPG_TTY
|
||||||
|
# shellcheck disable=1090
|
||||||
export PWHOME="$HOME/Nextcloud/passwords"
|
export PWHOME="$HOME/Nextcloud/passwords"
|
||||||
|
|
||||||
|
|
||||||
if [[ -d "$HOME"/.bash_completions.d ]];then
|
if [[ -d "$HOME"/.bash_completions.d ]];then
|
||||||
for file in "$HOME"/.bash_completions.d/*.sh;do
|
for file in "$HOME"/.bash_completions.d/*.sh;do
|
||||||
|
# shellcheck disable=1090
|
||||||
source "$file"
|
source "$file"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PS1 Prompt
|
# PS1 Prompt
|
||||||
|
# shellcheck disable=1090
|
||||||
[[ -f "$HOME/.functions/ps1.sh" ]] && source "$HOME/.functions/ps1.sh"
|
[[ -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 -)"
|
[[ -d "$HOME/.rbenv/bin" ]] && export PATH="$HOME/.rbenv/bin:$PATH" && eval "$(rbenv init -)"
|
||||||
|
|
||||||
#exit with no error
|
#exit with no error
|
||||||
|
Loading…
Reference in New Issue
Block a user