Skip to content

Commit

Permalink
fix parsing fzf version that has spaces (#94)
Browse files Browse the repository at this point in the history
Signed-off-by: Komo <[email protected]>
  • Loading branch information
mbekkomo authored Feb 21, 2024
1 parent aa4c49e commit eed9b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/.zsh-prepare-zoxide
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ done
# Check if fzf has minimal required version.
if (( ${+commands[fzf]} )); then
typeset fzf_version
fzf_version=$(fzf --version | awk -F '.' '{print $2}')
fzf_version=$(fzf --version | awk -F '.' '{print $2}' | awk -F ' ' '{print $1}')
if [[ $fzf_version -lt 21 ]]; then
print "The fzf version is too old. Please update to version 0.21.0 or higher."
print "Note: zoxide only supports fzf v0.21.0 and above."
Expand Down

0 comments on commit eed9b62

Please sign in to comment.