hacks - feeling at home with bash

Tagged:

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.

Trackback URL for this post:

http://www.federicopistono.org/trackback/178

Comments

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>
  • You may quote other posts using [quote] tags.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options