diff --git a/zsh-exa.plugin.zsh b/zsh-exa.plugin.zsh index 23ed85d..bc2b802 100755 --- a/zsh-exa.plugin.zsh +++ b/zsh-exa.plugin.zsh @@ -92,8 +92,12 @@ update_zsh_exa() { } _zsh_exa_load() { - # export PATH - export PATH=${PATH}:${EXA_HOME}/bin + local -r exadir=$EXA_HOME/bin + + # Add the exa bin directory path if it doesn't exist in $PATH. + if [[ -z ${path[(r)$exadir]} ]]; then + path+=($exadir) + fi } # install exa if it isnt already installed