Function: eshell/whoami

eshell/whoami is a byte-compiled function defined in em-unix.el.gz.

Signature

(eshell/whoami &rest ARGS)

Documentation

Make "whoami" Tramp aware.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/em-unix.el.gz
(defun eshell/whoami (&rest _args)
  "Make \"whoami\" Tramp aware."
  (or (file-remote-p default-directory 'user) (user-login-name)))