szermatt / emacs-bash-completion

Add programmable bash completion to Emacs shell-mode
GNU General Public License v2.0
279 stars 33 forks source link

emacs hang when press tab to complete in eshell #72

Open kaiwk opened 3 days ago

kaiwk commented 3 days ago

Looks like it's related to pyenv, fix it by adding the code below in .bashrc:

#  emacs-bash-completion will set this variable to "t"
if [ -z  $EMACS_BASH_COMPLETE ]; then 
  eval "$(pyenv init -)"
  eval "$(pyenv virtualenv-init -)"
  source "$(pyenv root)/completions/pyenv.bash"
fi