aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.profile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-02 08:18:01 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-02 13:39:59 +0300
commit42da15c1fbff60c4a49705b96ebb30721ccafb14 (patch)
tree3b86ccf4fd01e7224b5e401ba14cd49cee78ebae /%HOME%/.profile
parent.bash_utils: remove mysql.sh (diff)
downloadlinux-home-42da15c1fbff60c4a49705b96ebb30721ccafb14.tar.gz
linux-home-42da15c1fbff60c4a49705b96ebb30721ccafb14.zip
bash: best practices & linting
Diffstat (limited to '')
-rw-r--r--%HOME%/.profile12
1 files changed, 10 insertions, 2 deletions
diff --git a/%HOME%/.profile b/%HOME%/.profile
index eb57441..5c25be3 100644
--- a/%HOME%/.profile
+++ b/%HOME%/.profile
@@ -58,7 +58,11 @@ chruby_setup() {
chruby_setup
rbenv_setup() {
- command -v rbenv > /dev/null && eval "$( rbenv init - )"
+ local rbenv_init
+
+ command -v rbenv > /dev/null && \
+ rbenv_init="$( rbenv init - )" && \
+ eval "$rbenv_init"
}
rbenv_setup
@@ -83,7 +87,11 @@ python_setup python3 python
[ -r "$HOME/.pythonrc" ] && export PYTHONSTARTUP="$HOME/.pythonrc"
pyenv_setup() {
- command -v pyenv > /dev/null && eval "$( pyenv init - )"
+ local pyenv_init
+
+ command -v pyenv > /dev/null && \
+ pyenv_init="$( pyenv init - )" && \
+ eval "$pyenv_init"
}
pyenv_setup