You are not logged in.

#1 2008-12-20 15:26:53

yo
Member
Registered: 2008-08-31
Posts: 25

console history (up arrow)

Hi,

I recently install arch again i cant remember how to enable that for example when i type cd in console and then press up arrow
it shows the las commands that starts with cd.

Im using kdemod now just in case that is useful.

thx.

Offline

#2 2008-12-20 15:49:39

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: console history (up arrow)

In ~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward

Offline

#3 2008-12-21 16:47:19

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: console history (up arrow)

Procyon wrote:

In ~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward

@yo: see here.


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#4 2008-12-21 16:50:20

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: console history (up arrow)

This works for bash but not zsh.  Put the following in your .zshrc for zsh

bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward

Last edited by rson451 (2008-12-21 16:53:27)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#5 2008-12-22 02:17:21

yo
Member
Registered: 2008-08-31
Posts: 25

Re: console history (up arrow)

nexus7 wrote:
Procyon wrote:

In ~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward

@yo: see here.

lol i saw that but the part of bash completion not the bash history thasts inmediatly above.

thanks all for the responses

Offline

Board footer

Powered by FluxBB