Skip to content

Commit

Permalink
Issue #725: Only run compinit -C when running zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Sep 17, 2024
1 parent 81f3139 commit 4e0a655
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()
{
if ! (compinit -C 2> /dev/null) ; then
if [ -n "${KSH_VERSION+x}" -o -n "${BASH_VERSION+x}" ] || ! (compinit -C 2> /dev/null) ; then
__zsh_fpath=$(unset FPATH; zsh -f -c 'echo $FPATH')
fi
export FPATH=$(@PKGV@/libexec/addto --append FPATH ${__zsh_fpath:-$FPATH} @PKGV@/init/ksh_funcs)
Expand Down

0 comments on commit 4e0a655

Please sign in to comment.