Skip to content

lollipopman/bash-rsi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash-RSI

Allow folks who use vi mode in bash to intermarry with those folks who use emacs mode. This approach was inspired by tpope's vim-rsi which brings emacs bindings to vim.

This config allows setting the bash readline mode to vi, but keeps all the shortcuts from emacs mode intact.

In addition it sets the cursor to a vertical bar(❙) when in the hybrid emacs-vi insert mode, and a block cursor(▮) when in vi command mode.

Trying it out via a debian docker image

git clone https://github.com/lollipopman/bash-rsi.git ~/.bash-rsi
cd .bash-rsi
bash ./test

Install

git clone https://github.com/lollipopman/bash-rsi.git ~/.bash-rsi
printf '$include ~/.bash-rsi/inputrc\n' >> ~/.inputrc
printf '# shellcheck source=.bash-rsi/bashrc\nsource ~/.bash-rsi/bashrc\n' >> ~/.bashrc

About

Allow folks who use vi mode in bash to intermarry with those folks who use emacs mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages