[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sugg:autocompletion for builtincommand cd
From: |
liscovius |
Subject: |
sugg:autocompletion for builtincommand cd |
Date: |
Thu, 6 Dec 2001 15:38:19 +0100 (MET) |
hello bash-gurus,
i'm using linux with bash2.05.(suse7.2-user on a normal pc-platform)
i have a suggestion for bash. often i use the builtin-command cd with
autocompletion (2x tab-key). but the command is not clever enough at this point
in
my mind.
it provides files for the changedirectory-command!
why it does not check the fileattributes or something like that? it lists
all matching files, instead of only providing directories or links, who target
to directories.
so e.g cd(tab tab)provides (i added attributes and /)
lrwxrwxrwx directory -> directory1/
drwxr-xr-x directory1/
drwxr-xr-x directory2/
-rw-r--r-- text1.txt
-rw-r--r-- text2.txt
drwxr-xr-x xdirectory3/
instead of only
lrwxrwxrwx directory -> directory1/
drwxr-xr-x directory1/
drwxr-xr-x directory2/
drwxr-xr-x xdirectory3/
i don't know much about bash & co., so i don't know how bash do the
autocompletion, but if the cd-command uses the also builtin-command compgen to
do the
autocompletion, why not use compgen -d instead of compgen -f?
ok, thats all.
greatings from germany
peter liscovius
ps: bash is a great tool.
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sugg:autocompletion for builtincommand cd,
liscovius <=