diff options
| author | Benjamin Linskey | 2026-05-05 15:38:27 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-05-05 15:38:27 -0400 |
| commit | fd4095521d4b56d3db434f4e3e9a19f54ee94701 (patch) | |
| tree | 3563753005a9ea20ced800f8b3b75819b53b5300 | |
| parent | 8284be1e958bfb00ce08daacead1e50cde3d49ea (diff) | |
| download | dotfiles-fd4095521d4b56d3db434f4e3e9a19f54ee94701.tar.gz | |
Fix some .profile problems reported by shellcheck
| -rw-r--r-- | .profile | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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" |