How do I open scripts with double-click without them logging out after all commands are executed?
<p>I am trying to make a .command script that will call another script.
So whenever I double-click that script, it should launch another one.</p>

<pre><code>source /bin/name.sh
</code></pre>

<p>Whenever I double click that file, it invokes that script without any problem.
But after all commands are executed, it is logging out.</p>

<pre><code>logout

[Process completed]
</code></pre>

<p>I have also noticed this whenever i open .command file:</p>

<p><code>~/name.command ; <strong>exit</strong>;</code></p>

<p>I have made menu with aliases, So for example whenever user types in "Name" in console, it opens Name.sh.</p>

<p>Is there any way I can launch that script with double-clicking? So script will not log out after all commands are done. It doesn't close window, it just simply logs out from window, and then i can't access shell anymore.</p>