bug fix for srm alias
authorIan Kelling <ian@iankelling.org>
Thu, 29 May 2014 18:10:04 +0000 (11:10 -0700)
committerIan Kelling <ian@iankelling.org>
Thu, 4 May 2017 23:40:14 +0000 (16:40 -0700)
.bashrc

diff --git a/.bashrc b/.bashrc
index a8751e3c00d46bd2806dd56c6e341390341f8547..5b4c3d102a87cd05aad2dfa66dc6b5a9190bc989 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -88,6 +88,7 @@ shopt -s checkwinsize
 # attempt to save multiline single commands as single history entries.
 shopt -s cmdhist
 
+
 # inside emacs fixes
 if [[ $INSIDE_EMACS ]]; then
     export INSIDE_EMACS
@@ -103,7 +104,6 @@ if [[ $- == *i* ]]; then
     if [[ $INSIDE_EMACS ]]; then
         bind 'set horizontal-scroll-mode on'
         bind 'set print-completions-horizontally on'
-        bind '"\C-i": self-insert'
     else
         # arrow keys. for other terminals, see http://unix.stackexchange.com/questions/10806/how-to-change-previous-next-word-shortcut-in-bash
         if [[ $TERM == "xterm" ]]; then
@@ -625,7 +625,7 @@ complete -F _root_command s sb
 
 # use -ll, less secure but faster.
 srm () {
-    srm -ll "$@"
+    command srm -ll "$@"
 }
 
 # sudo redo. be aware, this command may not work right on strange distros or earlier software