<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="pref-custom-command" xml:lang="pt-BR">

  <info>
    <revision version="0.1" date="2013-03-02" status="candidate"/>
    <link type="guide" xref="index#preferences"/>
    <link type="guide" xref="profile"/>
    <link type="seealso" xref="gs-execute-commands"/>
<!--    <link type="seealso" xref="prob-add-to-path"/>-->

    <credit type="author copyright">
      <name>Sindhu S</name>
      <email>sindhus@live.in</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name>Ekaterina Gerasimova</name>
      <email>kittykat3756@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="copyright editor">
      <name>Michael Hill</name>
      <email>mdhillca@gmail.com</email>
      <years>2013</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>Set <app>Terminal</app> to run a command or a different shell on startup.</desc>

  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Luciana Bastos de Freitas Menezes</mal:name>
      <mal:email>lubfm@gnome.org</mal:email>
      <mal:years>2007.</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Pedro Vaz de Mello de Medeiros</mal:name>
      <mal:email>pedrovmm@gmail.com</mal:email>
      <mal:years>2007.</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Leonardo Ferreira Fontenelle</mal:name>
      <mal:email>leonardof@gnome.org</mal:email>
      <mal:years>2008.</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Andrius da Costa Ribas</mal:name>
      <mal:email>andriusmao@gmail.com</mal:email>
      <mal:years>2008.</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Enrico Nicoletto</mal:name>
      <mal:email>liverig@gmail.com</mal:email>
      <mal:years>2009, 2013.</mal:years>
    </mal:credit>
  </info>

  <title>Custom commands and shells</title>

  <p>A <em>shell</em> is software that provides an interface for users of an
  operating system to run <em>commands</em>, which can be programs such as
  <app>top</app> or a command line shell. The default shell is usually
  <app>Bash</app>.</p>

  <p>You can set <app>Terminal</app> to run a command when it starts up instead
  of awaiting input from you:</p>

  <steps>
    <item>
      <p>Select <guiseq><gui style="menu">Edit</gui>
      <gui style="menuitem">Profile Preferences</gui>
      <gui style="tab">Title and Command</gui></guiseq>.</p>
    </item>
    <item>
      <p>Marque <gui>Executar um comando personalizado em vez da minha shell</gui></p>
    </item>
    <item>
      <p>In the text box, type the command or the desired shell.</p>
      <p>The command will be passed to the terminal exactly as you write it,
      including any arguments that you specify. Environment variables will be
      inherited from the terminal as it is a child process of the terminal.</p>
    </item>
    <item>
      <p>Open a new <app>Terminal</app> tab or window to see how the custom
      shell or command executes.</p>
    </item>
  </steps>

  <p>You can also <link xref="pref-custom-exit">set the behaviour</link> of
  the terminal once the command finishes executing.</p>

  <note style="important">
    <p>You may have to enter full path to the command or the shell if the
    directory where the command or shell resides is not in the
    <code>PATH</code> variable of your system.</p>
  </note>

</page>
