iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2f7af9d
)
emacs readline-complete bash 4.4 fix
author
Ian Kelling
<ian@iankelling.org>
Wed, 28 Sep 2016 01:02:58 +0000
(18:02 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 4 May 2017 23:42:08 +0000
(16:42 -0700)
.bashrc
patch
|
blob
|
history
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
# 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
# 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
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 [[ $- == *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'
# 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'
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
PROMPT_DIRTRIM=2
bind -m vi-command B:shell-backward-word
bind -m vi-command W:shell-forward-word