Skip to content

Commit

Permalink
zsh: load bash compinit
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Sep 26, 2024
1 parent 969c4c4 commit a99996f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmsset_default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ then
export SCRAM_ARCH
fi

#ZSH: load bash bashcompinit for command auto completion
if [[ $(ps -p$$ --no-headers -o cmd | cut -d' ' -f1) =~ ^.*zsh$ ]] ; then
autoload -U +X compinit && compinit -u
autoload -U +X bashcompinit && bashcompinit
fi

for arch in share ${SCRAM_ARCH} ; do
if [ -d $here/${arch}/etc/profile.d ]
then
Expand Down

0 comments on commit a99996f

Please sign in to comment.