Issues

Issue #121 resolved

Bash completion inside GNU Screen doesn't work

Vladislav Polukhin
created an issue

I cannot use completion after upgrade to 2.11 in GNU Screen, but outside of screen completion works fine.

Comments (9)

  1. Doug Hellmann repo owner

    I'm going to need more details about the way it is failing to debug this. I don't know why anything would be different under screen, but is it possible they are intercepting the tab keystroke?

  2. Doug Hellmann repo owner
    • changed status to open

    If you have a minute, try changing line 236 by removing the "export". So "export VIRTUALENVWRAPPER_INITIALIZED=1" would become "VIRTUALENVWRAPPER_INITIALIZED=1".

  3. Vladislav Polukhin reporter

    I used patch:

    diff -r 5f8620d63fe6 virtualenvwrapper.sh
    --- a/virtualenvwrapper.sh      Wed Dec 28 12:39:20 2011 -0500
    +++ b/virtualenvwrapper.sh      Fri Jan 06 14:12:37 2012 +0800
    @@ -240,8 +240,6 @@
     
         virtualenvwrapper_setup_tab_completion
     
    -    export VIRTUALENVWRAPPER_INITIALIZED=1
    -
         return 0
     }
    

    Works fine!

  4. Doug Hellmann repo owner

    Does it work if the variable is set, but not exported? Leaving off the export statement should allow the same shell instance to avoid re-running the initialization code, but sub-shells like screen and Tmux won't inherit the setting so they will be initialized correctly.

  5. Log in to comment