diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 23:54:25 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 23:54:25 +1300 |
commit | 79309afa6f6d8b4f3a607694608b499db6b992fa (patch) | |
tree | 627a59b4d7182ccca6d7bfb613895e876bfd25ed /sh | |
parent | Add comment (diff) | |
download | dotfiles-79309afa6f6d8b4f3a607694608b499db6b992fa.tar.gz dotfiles-79309afa6f6d8b4f3a607694608b499db6b992fa.zip |
Use space before semicolon as command separator
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile | 8 | ||||
-rw-r--r-- | sh/profile.d/browser.sh | 2 | ||||
-rw-r--r-- | sh/profile.d/keychain.sh | 6 | ||||
-rw-r--r-- | sh/profile.d/ls.sh | 2 |
4 files changed, 9 insertions, 9 deletions
@@ -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 |