From 28930df7da1ba2c79c604f1e4954d19dc05c178e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 31 Jul 2013 17:37:51 +1200 Subject: Keep export calls separate from definitions --- sh/profile | 8 +++++--- sh/profile.d/keychain.sh | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'sh') diff --git a/sh/profile b/sh/profile index 0a1e12a3..447a9645 100644 --- a/sh/profile +++ b/sh/profile @@ -1,9 +1,11 @@ # Set editor -export EDITOR='vi' -export VISUAL="$EDITOR" +EDITOR='vi' +VISUAL="$EDITOR" +export EDITOR VISUAL # Set pager -export PAGER='less' +PAGER='less' +export PAGER # Add ~/.local/bin to PATH if [ -d "$HOME/.local/bin" ]; then diff --git a/sh/profile.d/keychain.sh b/sh/profile.d/keychain.sh index 3b7b5456..43d81781 100644 --- a/sh/profile.d/keychain.sh +++ b/sh/profile.d/keychain.sh @@ -1,6 +1,7 @@ # Keychain if command -v ssh-askpass >/dev/null; then - export SSH_ASKPASS=`which ssh-askpass` + SSH_ASKPASS=`which ssh-askpass` + export SSH_ASKPASS fi if command -v keychain >/dev/null; then eval `keychain --eval --ignore-missing --quiet id_dsa id_rsa id_ecsda` -- cgit v1.2.3