Skip to content

Commit 213ebf5

Browse files
author
Damon Haley
committed
Fixed eshell site-alias expansion for aliases beginning with @. Suggestion by Tassilo Horn:
http://tsdh.wordpress.com/2013/05/31/eshell-completion-for-git-bzr-and-hg/
1 parent 2245c41 commit 213ebf5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drupal/pcomplete.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@
4747
(defun drupal/pcomplete-drush-completion ()
4848
"Completion for `drush'."
4949
;; Completion for the command argument.
50-
(pcomplete-here* drupal/pcomplete-drush-commands)
50+
(let ((pcomplete-try-first-hook (remove 'eshell-complete-host-reference
51+
pcomplete-try-first-hook)))
52+
(pcomplete-here* drupal/pcomplete-drush-commands)
5153
(cond
5254
((pcomplete-match "help" 1)
5355
(pcomplete-here* drupal/pcomplete-drush-commands))
5456
(t
55-
(while (pcomplete-here (pcomplete-entries))))))
57+
(while (pcomplete-here (pcomplete-entries)))))))
5658

5759
(defalias 'pcomplete/drush 'drupal/pcomplete-drush-completion)
5860

0 commit comments

Comments
 (0)