diff options
| -rw-r--r-- | emacs/.emacs.d/init/ycp-complete.el | 6 | ||||
| -rw-r--r-- | misc/.bashrc | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-complete.el b/emacs/.emacs.d/init/ycp-complete.el index 2f2117d..4ca6b62 100644 --- a/emacs/.emacs.d/init/ycp-complete.el +++ b/emacs/.emacs.d/init/ycp-complete.el @@ -382,4 +382,10 @@ ((expand-file-name default-directory) . hmm-file))) (hmm-update)) +(my-package bash-completion + (:delay 60) + (bash-completion-setup) + ;; so that rm -iv alias does not interfere with completion candidates + (setq bash-completion-use-separate-processes t)) + (provide 'ycp-complete) diff --git a/misc/.bashrc b/misc/.bashrc index 48bc504..8677bb6 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -148,7 +148,9 @@ alias erc='EMACS_PROFILE=erc emacs' # generally safer option. alias cp='cp -iv' alias mv='mv -iv' -alias rm='rm -iv' +if [ -z "$EMACS_BASH_COMPLETE" ]; then + alias rm='rm -iv' +fi # git alias gcgrep='git log --pretty=format:"%h %ad - %an: %<(80,trunc)%s" | grep' |
