Whoami

Shows your username – I know this plugin makes no sense.

Command line interface

Syntax

  1. $ whoami

Arguments

This command takes no arguments.

Example

whoami.js

  1. /**
  2. * Who am I?
  3. **/
  4. TinyShell.plugins.whoami = new Class({
  5. description: "Show username",
  6. run : function(terminal) {
  7. terminal.print(terminal.user);
  8. terminal.resume();
  9. }
  10. });

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>