You are not logged in.
Pages: 1
Hello everybody,
I got my install up and running .
But now I am trying to improbe productivity by adding a simple command:
cd %1 && ls
I got it working by making it like this:
cc () {
cd $* && ls
}
This works exactly as I want it. But it doesn`t have tab completion!
Is it possible to enable this?
(if I change the function name to cd it does have tab completion but it goes in an endless loop, learnt that the hard way)
Last edited by gnur (2008-11-07 15:40:55)
Offline
I tried it out and it seems to work fine.
Offline
erm... do you have bash-completion installed and configured (in .bashrc)?
Offline
Hmm.. you think typing c<tab><tab><tab><tab><tab><tab>... will be faster then typing cc?
There are a lot of commands that start with c...
Other then that, it should work yes. I think you don't even need the bash-completion package. built in tab-completion should do afaik.
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
I think i should have been more clear.
I meant the completion wasn't working for the folder names.
So cc /ho<tab> won't give me home, it doesn't do anything at all.
//edit: it seems that restarting X gave me they joy of it working.
Last edited by gnur (2008-11-07 15:40:07)
Offline
Pages: 1