aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rw-r--r--sh/profile8
-rw-r--r--sh/profile.d/browser.sh2
-rw-r--r--sh/profile.d/keychain.sh6
-rw-r--r--sh/profile.d/ls.sh2
4 files changed, 9 insertions, 9 deletions
diff --git a/sh/profile b/sh/profile
index 17a93772..0440ee71 100644
--- a/sh/profile
+++ b/sh/profile
@@ -1,13 +1,13 @@
# Add ~/.local/bin to PATH if it exists
-if [ -d "$HOME"/.local/bin ]; then
+if [ -d "$HOME"/.local/bin ] ; then
PATH="$HOME"/.local/bin:"$PATH"
fi
export PATH
# Load all supplementary scripts in ~/.profile.d
-if [ -d "$HOME"/.profile.d ]; then
- for config in "$HOME"/.profile.d/*.sh; do
- if [ -r "$config" ]; then
+if [ -d "$HOME"/.profile.d ] ; then
+ for config in "$HOME"/.profile.d/*.sh ; do
+ if [ -r "$config" ] ; then
. "$config"
fi
done
diff --git a/sh/profile.d/browser.sh b/sh/profile.d/browser.sh
index 3b03b3d6..9d5919eb 100644
--- a/sh/profile.d/browser.sh
+++ b/sh/profile.d/browser.sh
@@ -1,5 +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 e4733aff..cde71792 100644
--- a/sh/profile.d/keychain.sh
+++ b/sh/profile.d/keychain.sh
@@ -1,16 +1,16 @@
# ssh-askpass setup
-if command -v ssh-askpass >/dev/null 2>&1; then
+if command -v ssh-askpass >/dev/null 2>&1 ; then
SSH_ASKPASS=$(command -v ssh-askpass)
export SSH_ASKPASS
fi
# keychain setup
-if command -v keychain >/dev/null 2>&1; then
+if command -v keychain >/dev/null 2>&1 ; then
eval "$(TERM=${TERM:-ansi} keychain \
--eval --ignore-missing --quiet id_dsa id_rsa id_ecsda)"
# Set and export TTY/GPG_TTY for interactive shells
- if [ -t 0 ]; then
+ if [ -t 0 ] ; then
GPG_TTY=$(tty)
export GPG_TTY
fi
diff --git a/sh/profile.d/ls.sh b/sh/profile.d/ls.sh
index c00d815d..f99a59f4 100644
--- a/sh/profile.d/ls.sh
+++ b/sh/profile.d/ls.sh
@@ -1,5 +1,5 @@
# Define and store appropriate colors for ls
-if command -v dircolors >/dev/null 2>&1; then
+if command -v dircolors >/dev/null 2>&1 ; then
eval "$(dircolors --sh)"
fi