You are not logged in.

#1 2009-07-27 19:27:21

Frostwarrior
Member
Registered: 2009-06-06
Posts: 27

[SOLVED] Page down/Page up bash completion.

In gentoo, bash has a feature when i press page down or page up with an incomplete command written. It completes the command writing based in history.

For example:
[frost@euclides] ~ $ c
[frost@euclides] ~ $ cd

With page up i can switch between c, cd, cat, etc.
But apparently it behaves different in arch.

How can i enable this funcionality in arch?
Thanks in advance.

Last edited by Frostwarrior (2009-07-27 21:47:52)

Offline

#2 2009-07-27 19:59:52

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Page down/Page up bash completion.

pacman -S bash-completion

then add the following to .bashrc

if [ -f /etc/bash_completion ]; then
        . /etc/bash_completion
fi


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-07-27 20:11:03

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Page down/Page up bash completion.

Sorry, that's not what you are asking...

try adding the following to /etc/iputrc

"\e[5~": history-search-backward
"\e[6~": history-search-forward

comment out the existing vlaues.  I hope this helps.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2009-07-27 21:47:22

Frostwarrior
Member
Registered: 2009-06-06
Posts: 27

Re: [SOLVED] Page down/Page up bash completion.

Solved. Thanks for the info. smile

Last edited by Frostwarrior (2009-07-27 21:47:35)

Offline

Board footer

Powered by FluxBB