Variable: tramp-completion-function-alist
tramp-completion-function-alist is a variable defined in tramp.el.gz.
Value
Large value
(("adb"
(tramp-adb-parse-device-names ""))
("rclone"
(tramp-rclone-parse-device-names ""))
("fcp"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("psftp"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("pscp"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("plink"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("sg"
(tramp-parse-etc-group "/etc/group"))
("ksu"
(tramp-parse-passwd "/etc/passwd"))
("doas"
(tramp-parse-passwd "/etc/passwd"))
("sudo"
(tramp-parse-passwd "/etc/passwd"))
("su"
(tramp-parse-passwd "/etc/passwd"))
("nc"
(tramp-parse-hosts "/etc/hosts"))
("telnet"
(tramp-parse-hosts "/etc/hosts"))
("sshx"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("ssh"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("rsync"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("scpx"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("scp"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("sshfs"
(tramp-parse-sconfig "/etc/ssh/ssh_config"))
("sudoedit"
(tramp-parse-passwd "/etc/passwd")))
Documentation
Alist of methods for remote files.
This is a list of entries of the form (NAME PAIR1 PAIR2 ...).
Each NAME stands for a remote access method. Each PAIR is of the form
(FUNCTION FILE). FUNCTION is responsible to extract user names and host
names from FILE for completion. The following predefined FUNCTIONs exists:
* tramp-parse-rhosts for "~/.rhosts" like files,
* tramp-parse-shosts for "~/.ssh/known_hosts" like files,
* tramp-parse-sconfig for "~/.ssh/config" like files,
* tramp-parse-shostkeys for "~/.ssh2/hostkeys/*" like files,
* tramp-parse-sknownhosts for "~/.ssh2/knownhosts/*" like files,
* tramp-parse-hosts for "/etc/hosts" like files,
* tramp-parse-passwd for "/etc/passwd" like files.
* tramp-parse-etc-group for "/etc/group" like files.
* tramp-parse-netrc for "~/.netrc" like files.
* tramp-parse-putty for PuTTY registered sessions.
FUNCTION can also be a user defined function. For more details see the info pages.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defvar tramp-completion-function-alist nil
"Alist of methods for remote files.
This is a list of entries of the form \(NAME PAIR1 PAIR2 ...).
Each NAME stands for a remote access method. Each PAIR is of the form
\(FUNCTION FILE). FUNCTION is responsible to extract user names and host
names from FILE for completion. The following predefined FUNCTIONs exists:
* `tramp-parse-rhosts' for \"~/.rhosts\" like files,
* `tramp-parse-shosts' for \"~/.ssh/known_hosts\" like files,
* `tramp-parse-sconfig' for \"~/.ssh/config\" like files,
* `tramp-parse-shostkeys' for \"~/.ssh2/hostkeys/*\" like files,
* `tramp-parse-sknownhosts' for \"~/.ssh2/knownhosts/*\" like files,
* `tramp-parse-hosts' for \"/etc/hosts\" like files,
* `tramp-parse-passwd' for \"/etc/passwd\" like files.
* `tramp-parse-etc-group' for \"/etc/group\" like files.
* `tramp-parse-netrc' for \"~/.netrc\" like files.
* `tramp-parse-putty' for PuTTY registered sessions.
FUNCTION can also be a user defined function. For more details see
the info pages.")