hacks - feeling at home with bash

By: Federico Pistono

2 Jun 2008

I longed for this for so many year but somehow never took the effort to research it. Turns out that bash autocompletion can be be made into something sane by adding the following to profile/bashrc:

# make bash autocomplete with up arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
# make tab cycle through commands instead of listing
bind '"\t":menu-complete'
# make cd try only directories
complete -d cd

From drupal4hu.

No Responses yet to hacks - feeling at home with bash

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div>
  • Lines and paragraphs break automatically.
  • You may quote other posts using [quote] tags.

More information about formatting options

My Communities

iSupport

User login