emacs readline-complete bash 4.4 fix
authorIan Kelling <ian@iankelling.org>
Wed, 28 Sep 2016 01:02:58 +0000 (18:02 -0700)
committerIan Kelling <ian@iankelling.org>
Thu, 4 May 2017 23:42:08 +0000 (16:42 -0700)
.bashrc

diff --git a/.bashrc b/.bashrc
index 6fe4174c29cf4019b0e36d0bde45027f80fa7def..6889b83102e16bef415ffc5ab22e1b9d44c50177 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -118,11 +118,11 @@ shopt -s globstar
 
 
 # inside emacs fixes
-if [[ $INSIDE_EMACS ]]; then
+if [[ $RLC_INSIDE_EMACS ]]; then
     # EMACS is used by bash on startup, but we don't need it anymore.
     # plus I hit a bug in a makefile which inherited it
     unset EMACS
-    export INSIDE_EMACS
+    export RLC_INSIDE_EMACS
     export PAGER=cat
     export MANPAGER=cat
     # scp completion does not work, but this doesn't fix it. todo, figure this out
@@ -155,7 +155,7 @@ fi
 
 if [[ $- == *i* ]]; then
     # for readline-complete.el
-    if [[ $INSIDE_EMACS ]]; then
+    if [[ $RLC_INSIDE_EMACS ]]; then
         # all for readline-complete.el
         stty echo
         bind 'set horizontal-scroll-mode on'
@@ -1355,7 +1355,7 @@ if [[ $- == *i* ]]; then
     shopt -s autocd
     shopt -s dirspell
     PS1='\w'
-    if [[ $- == *i* ]]  && [[ ! $INSIDE_EMACS ]]; then
+    if [[ $- == *i* ]]  && [[ ! $RLC_INSIDE_EMACS ]]; then
         PROMPT_DIRTRIM=2
        bind -m vi-command B:shell-backward-word
        bind -m vi-command W:shell-forward-word