Skip to content

Commit 080568c

Browse files
committed
Improve .profile
1 parent c5aa2e1 commit 080568c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.profile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
#umask 022
1010

1111
# if running bash
12-
if [ -n "$BASH_VERSION" ]; then
12+
if [ -n "${BASH_VERSION}" ]; then
1313
# include .bashrc if it exists
14-
if [ -f "$HOME/.bashrc" ]; then
15-
. "$HOME/.bashrc"
14+
if [ -f "${HOME}/.bashrc" ]; then
15+
. "${HOME}/.bashrc"
1616
fi
1717
fi
1818

1919
# set PATH so it includes user's private bin if it exists
20-
if [ -d "$HOME/bin" ] ; then
21-
PATH="$HOME/bin:$PATH"
20+
if [ -d "${HOME}/bin" ] ; then
21+
PATH="${HOME}/bin:$PATH"
2222
fi
2323

2424
# set PATH so it includes user's private bin if it exists
25-
if [ -d "$HOME/.local/bin" ] ; then
26-
PATH="$HOME/.local/bin:$PATH"
25+
if [ -d "${HOME}/.local/bin" ] ; then
26+
PATH="${HOME}/.local/bin:${PATH}"
2727
fi
2828

2929
# Rust Cargo
@@ -34,9 +34,9 @@ fi
3434
# Pre-startup scripts don't seem to work on Plasma Wayland,
3535
# and therefore the pre-startup script has to be loaded here.
3636
# . "${HOME}/Git/linux-scripts/startup/agx-user-pre-startup.sh"
37-
if [ -f "${HOME}/.ssh-agent-info" ]; then
38-
eval "$(<"${HOME}/.ssh-agent-info")" > /dev/null
39-
fi
37+
# if [ -f "${HOME}/.ssh-agent-info" ]; then
38+
# eval "$(<"${HOME}/.ssh-agent-info")" > /dev/null
39+
# fi
4040

41-
export NVM_DIR="$HOME/.nvm"
42-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
41+
export NVM_DIR="${HOME}/.nvm"
42+
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"

0 commit comments

Comments
 (0)