Tags: Bash

This is some nice settings for bash


$ cat ~/.inputrc
# Make tab-completion case-insensitive
set completion-ignore-case on

# Arrow keys search after lines with the same prefix as the current input


$ cat ~/.bashrc
# minor errors in the spelling of a directory component in a cd command will be
# corrected. 
shopt -s cdspell

# auto-expand ! combinations on space (HISTORY EXPANSION in man bash)
bind Space:magic-space

Tips and tricks

  • To edit the current command in your editor ($EDITOR):
    • With emacs-mode: <C-xe>
    • With vi-mode: ^[v
  • Read manpages! man man is a good place to start