diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-04-06 20:43:36 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-04-06 20:43:36 +0100 |
commit | 37dc8f0fa5ba1779d45dae1abf6d4b44850cfda1 (patch) | |
tree | 4f436147e49a3094867090b089798fd5ee1c6e6a /zsh | |
parent | 0ef187b518617ffd862043a318cd3178f64fe473 (diff) | |
download | dotfiles-37dc8f0fa5ba1779d45dae1abf6d4b44850cfda1.tar.gz dotfiles-37dc8f0fa5ba1779d45dae1abf6d4b44850cfda1.zip |
Regularise the configurationv1.1
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zsh/export.zsh | 8 |
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" |