I have always used the following prompt because it provides and immediate
cut-n-paste for ssh or rsync directory information:
PS1="\[\e[0;37m\]\A\[\e[1;34m\] \h:\w> \[\e[0m\]"
PS1="\[\e[1;34m\][\[\e[1;31m\]\A \[\e[1;34m\]\h\[\e[0;31m\]:\w\[\e[1;34m\]] #
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
drwxrwxr-x 2 david david 4096 Feb 22 17:21 .rinity-tqtinterface.install
drwxr-xr-x 11 david david 4096 Feb 22 14:26 ..
-rw-r--r-- 1 nobody root 1361984 Feb 21 16:21
-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
-rw-r--r-- 1 nobody nobody 25408 Feb 21 16:24
-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):
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:
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.