Browse Source

Add inputrc and bash bind

master
Taylor Bockman 5 years ago
parent
commit
212333187d
  1. 2
      README.md
  2. 9
      dotfiles/bash/bashrc
  3. 5
      dotfiles/bash/inputrc

2
README.md

@ -29,6 +29,8 @@ For Linux, symlink `scripts/dotfiles/bash/linuxrc` to `~/.linuxrc`.
If you want better tab completion install `bash-completion` using your package manager.
Symlink `scripts/dotfiles/bash/inputrc` to `~/.inputrc`.
## Vim
Right now I use Neovim.

9
dotfiles/bash/bashrc

@ -1,10 +1,11 @@
# Use the iterm2 material theme in the root directory of the essentials repository. For linux,
# you will need to source a material theme color scheme for your terminal.
# Improve autocomplete
bind "TAB:menu-complete"
bind "set show-all-if-ambiguous on"
bind "set menu-complete-display-prefix on"
if [ -f ~/.inputrc ]; then
bind -f ~/.inputrc
else
echo "No .inputrc detected"
fi
if [[ "$OSTYPE" == "darwin"* ]]; then
if [ -f ~/.macrc ]; then

5
dotfiles/bash/inputrc

@ -0,0 +1,5 @@
set show-all-if-ambiguous on
set show-all-if-unmodified on
set menu-complete-display-prefix on
"\t": menu-complete
"\e[Z": menu-complete-backward
Loading…
Cancel
Save