You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, August 16th 2007, 12:56pm

keyboard shortcuts in shell

Hi
There are a few keyboard shortcuts that I use while working in a shell.
For example : ctrl-x + shift-4 to expand a variable name.
ctrl-x + shift-8 to expand multiple filenames with asterisk.
I know that there's a command that lists all these special shortcuts.
I just don't remember what it is.
Does anyone have any idea?

Thanks

2

Tuesday, August 21st 2007, 4:28pm

RE: keyboard shortcuts in shell

Quoted

Originally posted by tutbalut
Hi
There are a few keyboard shortcuts that I use while working in a shell.
For example : ctrl-x + shift-4 to expand a variable name.
ctrl-x + shift-8 to expand multiple filenames with asterisk.
I know that there's a command that lists all these special shortcuts.
I just don't remember what it is.
Does anyone have any idea?

Thanks


The command you are thinking of is bind which controls the key bindings for the readline library. Bind does not have it's own man page so try man bash and then search for "^ *bind ".
Looking at the key bindings on my machine, "\C-x$" (ctrl-x + shift-4) is bound to complete-variable and "\C-x*" (ctrl-x + shift-8) is bound to glob-expand-word.

3

Wednesday, August 22nd 2007, 8:28am

thanks swivel-head
I found the command - "bindkey"
when I ran it, it gave me a list of all the key bindings