Browse Source

Add inputrc and bash bind

Taylor Bockman 5 years ago
parent
commit
e6ee845abf
  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. If you want better tab completion install `bash-completion` using your package manager.
Symlink `scripts/dotfiles/bash/inputrc` to `~/.inputrc`.
## Vim ## Vim
Right now I use Neovim. 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, # 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. # you will need to source a material theme color scheme for your terminal.
# Improve autocomplete if [ -f ~/.inputrc ]; then
bind "TAB:menu-complete" bind -f ~/.inputrc
bind "set show-all-if-ambiguous on" else
bind "set menu-complete-display-prefix on" echo "No .inputrc detected"
fi
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
if [ -f ~/.macrc ]; 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