Editing Shell
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 27: | Line 27: | ||
==Introduction== | ==Introduction== | ||
− | + | The shell is a program, that provides users with a command prompt. Different shells behave differently. The default shell on GhostBSD is ''fish''. When you install a shell from a port or a package, it adds an appropriate entry in <code>/etc/shells</code>. | |
==Shells on GhostBSD== | ==Shells on GhostBSD== | ||
Line 48: | Line 48: | ||
The easiest way to permanently change the default shell is to use <code>chsh</code>. Running this command will open the editor that is configured in the EDITOR environment variable, which by default is set to vi(1). Change the Shell: line to the full path of the new shell. | The easiest way to permanently change the default shell is to use <code>chsh</code>. Running this command will open the editor that is configured in the EDITOR environment variable, which by default is set to vi(1). Change the Shell: line to the full path of the new shell. | ||
− | Alternately, use <code> | + | Alternately, use <code>chsh -s</code> which will set the specified shell without opening an editor. For example, to change the shell to ''bash'': |
<code>% chsh -s /usr/local/bin/bash</code> | <code>% chsh -s /usr/local/bin/bash</code> |