Skip to content

Commit

Permalink
Re-run compinit -C if it fails the first time by updating FPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Aug 14, 2024
1 parent 861b8e2 commit f5bdead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi

__build_FPATH_for_zsh_ksh()
{
(compinit -c 2> /dev/null)
(compinit -C 2> /dev/null)
if [ "$?" != 0 ]; then
zsh_fpath=$(unset FPATH; zsh -f -c 'echo $FPATH')
fi
Expand Down

0 comments on commit f5bdead

Please sign in to comment.