Skip to content
Alex Lementuev edited this page May 5, 2015 · 4 revisions

Terminal Basics

This is a quick overview of Lunar Plugin Terminal usage.
We're going to use > to indicate a terminal prompt (actual command typing).

To open Lunar Terminal use Editor's menu: Window ▶ Lunar ▶ Terminal

Using Commands

Run a command

Type command name with its options and arguments and then hit Enter:

> commandName -shortOption --longOption arg "arg with white spaces" "arg with 'inner quotes'"

List commands

  • Hit Tab key twice to see all available commands or type cmdlist and hit Enter:
> cmdlist
alias            cat              cvar_restart     log              tag              unalias
aliaslist        clear            cvarlist         man              test             unbind
bind             clearprefs       echo             menu             throw_exception  unbindall
bindlist         cmdlist          exec             prefs            timeScale        writeconfig
break            colors           exit             reset            toggle
  • Type partial command name and hit Tab key to autocomplete or hit Tab key twice for the list of all commands starting with the typed string:
> clear
clear       clearprefs

Command's Manual Page

Use man command to see command's manual page:

> man cmdlist
  Lists all available terminal commands.
  usage: cmdlist [-a|--all] [<prefix>]

Multiple commands per line:

You can chain multiple command together using && syntax:
> command1 && command2 "some argument" && command3

Commands History

You can iterate through your commands's history with (up arrow) and (down arrow) keys.

Navigation

  • Ctrl+A - go to the beginning of the line
  • Ctrl+E - go to the end of the line
  • Ctrl+C - clear the line
  • Alt+→ - jump one word right
  • Alt+← - jump one word left
Clone this wiki locally