Re:Advancing in the Bash Shell
by devnonymous on Tuesday September 13, 2016 @12:02PM
(#12489516)
Just curious since I don't use a mac, doesn't writing the mappings to .inputrc work? IIRC, putting your readline bindings there makes it available for all readline enabled prompts, not just bash ie: Python, pgsql, mysql,.. Etc
Yes I think that's a better approach, thanks. I don't know why I started using `bind` in my shell config.
Mapping these to Up/Down arrows (instead of PgUp-PdDn) is the best idea EVER !!!
Re:Advancing in the Bash Shell
by musicmatze on Sunday September 18, 2016 @04:04AM
(#12524382)
Is there a way to make this work with `set -o vi`? So I can use j/k to browse the history this way?
Personally I bind them to up/down which on OS X at least involves:
That way if you haven't typed any input it behaves like normal up (previous command), but if you've typed some characters it only retrieves matching commands.http://codeinthehole.com/writing/the-most-important-command-...