[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No completion after sudo in (e)shell
From: |
Thierry Volpiatto |
Subject: |
No completion after sudo in (e)shell |
Date: |
Fri, 14 Dec 2012 19:58:49 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.90 (gnu/linux) |
emacs -Q
M-x eshell
apt- <TAB> completion for apt commands popup
*sudo apt- <TAB> nothing
Same in M-x shell
Adding a pcomplete/sudo function fix this (At least in eshell, I don't
use shell).
--8<---------------cut here---------------start------------->8---
(defun pcomplete/sudo ()
(let ((prec (pcomplete-arg 'last -1)))
(cond ((string= "sudo" prec)
(while (pcomplete-here*
(funcall pcomplete-command-completion-function)
(pcomplete-arg 'last) t))))))
--8<---------------cut here---------------end--------------->8---
Not a bug just something missing.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- No completion after sudo in (e)shell,
Thierry Volpiatto <=