Skip to content

Commit

Permalink
Merge pull request #4 from a5ob7r/fix_duplicate_path_addition
Browse files Browse the repository at this point in the history
🐛 Fix a duplicate path addition
  • Loading branch information
ptavares authored Jul 17, 2022
2 parents 896860c + 46ddca3 commit 6888b6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zsh-exa.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6888b6d

Please sign in to comment.