You are not logged in.
I must be missing something fairly obvious, so I apologize beforehand for bothering you all with this.
I installed bash-completion-2.0-2, and I am seeing this annoying behavior: many command line usage patterns ( like spawning "evince" - my preferred PDF Viewer, or even aliases I've setup - e.g. alias l='ls -alF --color') are now more painful to use, because the typing pattern I am used to is no longer working. For example, trying to view a pdf stored in "/some/full/path/filename.pdf" I used to simply do:
bash$ evince /so<TAB>/f<TAB>/p<TAB>/f<TAB>
and I would see TAB completion fill in the path for me.
However, after installing bash-completion, TAB now adds a space - i.e.
bash$ evince /so<TAB>
shows:
bash$ evince /some[space][cursor]
instead of
bash$ evince /some/[cursor]
...so every time I hit TAB, I must also now delete the extraneous space before typing a letter and hitting TAB again. I therefore can't use the muscle-memoried TAB-letter-TAB-letter pattern formed over many a years).
The only workaround I've found so far, is to add this ridiculous loop in my .bashrc:
# Stupid bash-completion defaults
for i in cat l ls mv strip ldd tail nm cp patch ln df rmdir indent sha1sum \
find md5sum rm touch objdump diff base64 less head evince ; do
complete -F _filedir_xspec $i
done
complete -d mydu.sh
complete -F _filedir_xspec loopaesmount.py
...in order to revert to the sane behavior for an ever increasing list of applications and my own scripts/aliases.
I must be missing something fairly trivial: a way to stop bash-completion from adding a space at the end of every TAB completion. I could of course just uninstall bash-completion, but I admit it is helpful to have it suggest options for git/svn/etc - so I am hoping there's a way to globally revert to the old TAB completion behaviour - one where folder names are completed with "/", not with "space".
Any suggestions most welcome,
Thanassis.
Last edited by ttsiodras (2012-11-17 19:42:48)
Offline
See this closed bug report https://bugs.archlinux.org/task/22807
Offline
Spot on!
Thanks, removing /etc/bash_completion.d/acroread seems to have solved this.
Offline