Bash “Esc .” not pasting last typed command

I recently ran into an issue where a system I was accessing would paste the last command when typing “Esc .”  I know this is a Bash shortcut so I went to investigating

Turns out in /etc/bashrc I found set -o vi which tells the shell to use a vi-style command line editing interface.

Here is the output with no options given for my system:

[dlopez@dlodev ~]$ set -o
allexport       off
braceexpand     on
emacs           on
errexit         off
errtrace       off
functrace       off
hashall         on
histexpand     on
history         on
ignoreeof       off
interactive-comments on
keyword         off
monitor         on
noclobber       off
noexec         off
noglob         off
nolog           off
notify         off
nounset         off
onecmd         off
physical       off
pipefail       off
posix           off
privileged     off
verbose         off
vi             off
xtrace         off

The output of the command above produced vi on for the system not functioning as I expected.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s