147 |
(defun eshell-alias-initialize () |
(defun eshell-alias-initialize () |
148 |
"Initialize the alias handling code." |
"Initialize the alias handling code." |
149 |
(make-local-variable 'eshell-failed-commands-alist) |
(make-local-variable 'eshell-failed-commands-alist) |
|
(make-local-hook 'eshell-alternate-command-hook) |
|
150 |
(add-hook 'eshell-alternate-command-hook 'eshell-fix-bad-commands t t) |
(add-hook 'eshell-alternate-command-hook 'eshell-fix-bad-commands t t) |
151 |
(eshell-read-aliases-list) |
(eshell-read-aliases-list) |
|
(make-local-hook 'eshell-named-command-hook) |
|
152 |
(add-hook 'eshell-named-command-hook 'eshell-maybe-replace-by-alias t t) |
(add-hook 'eshell-named-command-hook 'eshell-maybe-replace-by-alias t t) |
153 |
(make-local-variable 'eshell-complex-commands) |
(make-local-variable 'eshell-complex-commands) |
154 |
(add-to-list 'eshell-complex-commands 'eshell-command-aliased-p)) |
(add-to-list 'eshell-complex-commands 'eshell-command-aliased-p)) |