diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile | 10 | ||||
-rw-r--r-- | sh/profile.d/browser.sh | 3 | ||||
-rw-r--r-- | sh/profile.d/keychain.sh | 10 |
3 files changed, 12 insertions, 11 deletions
@@ -6,14 +6,14 @@ export VISUAL="$EDITOR" export PAGER='less' # Add ~/.local/bin to PATH -[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH" +if [ -d "$HOME/.local/bin" ]; then + PATH="$HOME/.local/bin:$PATH" +fi export PATH # Load any supplementary scripts -if [ -d "$HOME/.profile.d" ] -then - for file in $HOME/.profile.d/* - do +if [ -d "$HOME/.profile.d" ]; then + for file in $HOME/.profile.d/*; do . $file done fi diff --git a/sh/profile.d/browser.sh b/sh/profile.d/browser.sh index 2b060b06..094d2095 100644 --- a/sh/profile.d/browser.sh +++ b/sh/profile.d/browser.sh @@ -1,6 +1,5 @@ # Browser -if [ -n "$DISPLAY" ] -then +if [ -n "$DISPLAY" ]; then BROWSER='firefox' else BROWSER='lynx' diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh index a53edb65..3b7b5456 100644 --- a/sh/profile.d/keychain.sh +++ b/sh/profile.d/keychain.sh @@ -1,6 +1,8 @@ # Keychain -command -v ssh-askpass >/dev/null 2>&1 \ - && export SSH_ASKPASS=`which ssh-askpass` -command -v keychain >/dev/null 2>&1 \ - && eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda` +if command -v ssh-askpass >/dev/null; then + export SSH_ASKPASS=`which ssh-askpass` +fi +if command -v keychain >/dev/null; then + eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda` +fi |