From 79309afa6f6d8b4f3a607694608b499db6b992fa Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 10 Feb 2014 23:54:25 +1300 Subject: Use space before semicolon as command separator --- sh/profile | 8 ++++---- sh/profile.d/browser.sh | 2 +- sh/profile.d/keychain.sh | 6 +++--- sh/profile.d/ls.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'sh') 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 -- cgit v1.2.3