aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-04-06 20:43:36 +0100
committerYann Herklotz <git@yannherklotz.com>2020-04-06 20:43:36 +0100
commit37dc8f0fa5ba1779d45dae1abf6d4b44850cfda1 (patch)
tree4f436147e49a3094867090b089798fd5ee1c6e6a
parent0ef187b518617ffd862043a318cd3178f64fe473 (diff)
downloaddotfiles-1.1.tar.gz
dotfiles-1.1.zip
Regularise the configurationv1.1
-rw-r--r--zsh/.zsh/export.zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/zsh/.zsh/export.zsh b/zsh/.zsh/export.zsh
index 671bf5c..4e1de6d 100644
--- a/zsh/.zsh/export.zsh
+++ b/zsh/.zsh/export.zsh
@@ -2,7 +2,7 @@ os=$(uname -s)
. $HOME/.nix-profile/etc/profile.d/nix.sh
-[ -n $SSH_CLIENT ] && export MINIMAL_USER_CHAR="$(hostname)"
+[ -n "$SSH_CLIENT" ] && export MINIMAL_USER_CHAR="$(hostname)"
export GITHUB_HOME=$HOME/Projects
export FZF_DEFAULT_COMMAND='fd --type file --hidden --no-ignore'
@@ -13,11 +13,11 @@ export TERM='xterm-256color'
export CLICOLOR=1
prepend_path() {
- test -d "$1" && PATH="$1:$PATH"
+ [ -d "$1" ] && PATH="$1:$PATH"
}
append_path() {
- test -d "$1" && PATH="$PATH:$1"
+ [ -d "$1" ] && PATH="$PATH:$1"
}
if [ $os = "Darwin" ]; then
@@ -57,7 +57,7 @@ if [ "$?" -eq 0 ]; then
fi
# Load rust environment
-[ -r $HOME/.cargo/env ] && source $HOME/.cargo/env
+[ -r "$HOME/.cargo/env" ] && source $HOME/.cargo/env
# Travis
[ -r "$HOME/.travis/travis.sh" ] && source "$HOME/.travis/travis.sh"