tab completion is mucking up prompt spacing - started a week or so ago - any ideas?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



All,

  I have always used the following prompt because it provides and immediate
cut-n-paste for ssh or rsync directory information:

User:

PS1="\[\e[0;37m\]\A\[\e[1;34m\] \h:\w> \[\e[0m\]"

Root:

PS1="\[\e[1;34m\][\[\e[1;31m\]\A \[\e[1;34m\]\h\[\e[0;31m\]:\w\[\e[1;34m\]] #
\[\e[0m\]"

  Lately on some tab completions using ~/, I've noticed that the tab-completion
automatically fills in /home/david for ~/ and on other operations it does not.
It seems in some cases that tab completion tries to automatically account for
the extra spacing needed by inserting /$HOME in place of ~/ but it doesn't do it
correctly resulting in my cursor being moved a line ABOVE the current line?

  What package is most likely responsible for this? bash-completion? Also, is
anyone else seeing this?

  Here is an example:

17:20 providence:~/tde/bld/trinity-tqtinterface> trinity.profile.sh
                                 d.tar.gz
17:21 providence:~/tde/bld/trinity-tqtinterface>
lrinity-tqtinterface-3513_git-5-i686-build.log                 l.tar.gz
total 1416idence:~/tde/bld/trinity-tqtinterface>
trinity-tqtinterface-3513_git-5-i686-package.log              o.tar.gz
drwxrwxr-x  2 david  david     4096 Feb 22 17:21 .rinity-tqtinterface.install
                              -.tar.gz
drwxr-xr-x 11 david  david     4096 Feb 22 14:26 ..
dependencies-tqtinterface.tar.gz dependencies-tqtinterface.tar.gz
-rw-r--r--  1 nobody root   1361984 Feb 21 16:21
dependencies-tqtinterface-old.tar.gz
-rw-r--r--  1 david  david     2510 Feb 19 02:55 PKGBUILD
-rw-r--r--  1 nobody root       680 Feb 21 16:21 tqtpc-location.patch
-rw-r--r--  1 nobody root       512 Feb 21 16:21 trinity.profile.csh
-rw-r--r--  1 nobody root       423 Feb 21 16:21 trinity.profile.sh
-rw-r--r--  1 nobody nobody   26789 Feb 21 16:24
trinity-tqtinterface-3513_git-5-i686-build.log
-rw-r--r--  1 nobody nobody   25408 Feb 21 16:24
trinity-tqtinterface-3513_git-5-i686-package.log
-rw-r--r--  1 david  david      116 Feb 15 21:49 trinity-tqtinterface.install

  I had used

mv trini<tab> trini<tab>

to set up a way to back up and add -old to the trinity-tqtinterface.tar.gz (just
before the .tar.gz). When I used <tab> for the second instance of the filename
and touched the left-arrow key, the cursor jumped up one line each time I would
type a character in 'old'. Look at the actual text above (it looked like this on
the right-side of the screen):

                      d.tar.gz
                 l.tar.gz
              o.tar.gz

Then after the successful 'mv' of the file, the cursor went back to normal, but
it was on a line that already had text on it. Notice the:

'lrinity-tqtinterfac... line'

That was the next line after the move where I had type 'l' (alias='ls -al')

This is obviously prompt/completion related, but any guesses which file is
responsible for the weirdness?

-- 
David C. Rankin, J.D.,P.E.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux