Put on_prompt() setting with its implementation
authorDavid Kerkeslager <kerkeslager@gmail.com>
Tue, 4 Jun 2019 17:15:30 +0000 (13:15 -0400)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Tue, 4 Jun 2019 17:15:30 +0000 (13:15 -0400)
.bashrc

diff --git a/.bashrc b/.bashrc
index a783a60..778a65d 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -119,11 +119,11 @@ on_prompt() {
   fi
 }
 
-# Set vi keybindings
-set -o vi
-
 # Call on_prompt() every time the command prompt executes
 PROMPT_COMMAND=on_prompt
 
+# Set vi keybindings
+set -o vi
+
 # pip should only run if there is a virtualenv currently activated
 export PIP_REQUIRE_VIRTUALENV=true