aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-05-05 15:38:27 -0400
committerBenjamin Linskey2026-05-05 15:38:27 -0400
commitfd4095521d4b56d3db434f4e3e9a19f54ee94701 (patch)
tree3563753005a9ea20ced800f8b3b75819b53b5300
parent8284be1e958bfb00ce08daacead1e50cde3d49ea (diff)
downloaddotfiles-fd4095521d4b56d3db434f4e3e9a19f54ee94701.tar.gz

Fix some .profile problems reported by shellcheck

-rw-r--r--.profile15
1 files changed, 8 insertions, 7 deletions
diff --git a/.profile b/.profile
index 3777253..8e2724d 100644
--- a/.profile
+++ b/.profile
@@ -9,11 +9,11 @@ fi
export PATH="$HOME/bin:$PATH"
-if [ "$SHELL" == /bin/sh ]; then
- export ENV=$HOME/.shrc
-elif [ "$SHELL" == /bin/ksh ]; then
- export ENV=$HOME/.kshrc
-elif [ "$SHELL" == /bin/bash ]; then
+if [ "$SHELL" = /bin/sh ]; then
+ export ENV="$HOME"/.shrc
+elif [ "$SHELL" = /bin/ksh ]; then
+ export ENV="$HOME"/.kshrc
+elif [ "$SHELL" = /bin/bash ]; then
. "$HOME/.bashrc"
fi
@@ -45,8 +45,9 @@ export LESSHISTFILE=-
# Windows Subsystem for Linux
if [ -f /proc/version ] && grep -qi microsoft /proc/version; then
# Run keychain to enable ssh-agent sharing across shells.
- /usr/bin/keychain -q --nogui $HOME/.ssh/id_rsa
- . $HOME/.keychain/$(hostname -s)-sh
+ /usr/bin/keychain -q --nogui "$HOME"/.ssh/id_rsa
+ # shellcheck disable=SC1090
+ . "$HOME"/.keychain/"$(hostname -s)"-sh
# Add Windows OpenSSH directory to PATH to enable 1Password integration.
export PATH="${PATH}:/mnt/c/Windows/System32/OpenSSH"