From cc328eda1d420395e340d2da6386fa599f978da6 Mon Sep 17 00:00:00 2001 From: Jim Mock Date: Mon, 10 Apr 2000 19:17:16 +0000 Subject: [PATCH] Add an entry on changing shells. PR: 17862 Suggested by: Mike Kohout Submitted by: Eric Ogren --- .../books/handbook/basics/chapter.sgml | 41 ++++++++++++++++++- .../books/handbook/basics/chapter.sgml | 41 ++++++++++++++++++- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/basics/chapter.sgml b/en_US.ISO8859-1/books/handbook/basics/chapter.sgml index 907ce5ffac..370cd29579 100644 --- a/en_US.ISO8859-1/books/handbook/basics/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/basics/chapter.sgml @@ -1,7 +1,7 @@ @@ -331,6 +331,45 @@ $TERM prints whatever your terminal is set to. echo \$TERM prints $TERM as is. + + + Changing your shell + + The easiest way to change your shell is to use the + chsh. Running chsh will + place you into the editor that is in your EDITOR + environment variable; if it is not set, you will be placed in + vi. Change the “Shell:” line + accordingly. + + You can also give chsh the + option; this will set the shell for you + without having to enter the editor. For example, if you wanted to + change your shell to bash, the following should do the + trick: + + &prompt.user; chsh -s /usr/local/bin/bash + + Running chsh with no parameters and editing + the shell from there would work also. + + + The shell that you wish to use must be + present in the /etc/shells file. If you + have installed a shell from the ports + collection, then this should have been done for you + already. If you installed the shell by hand, you must do + this. + + For example, if you installed bash by hand + and placed it into /usr/local/bin, you would + want to: + + &prompt.root; echo "/usr/local/bin/bash" >> /etc/shells + + Then rerun chsh. + + diff --git a/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml b/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml index 907ce5ffac..370cd29579 100644 --- a/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml +++ b/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml @@ -1,7 +1,7 @@ @@ -331,6 +331,45 @@ $TERM prints whatever your terminal is set to. echo \$TERM prints $TERM as is. + + + Changing your shell + + The easiest way to change your shell is to use the + chsh. Running chsh will + place you into the editor that is in your EDITOR + environment variable; if it is not set, you will be placed in + vi. Change the “Shell:” line + accordingly. + + You can also give chsh the + option; this will set the shell for you + without having to enter the editor. For example, if you wanted to + change your shell to bash, the following should do the + trick: + + &prompt.user; chsh -s /usr/local/bin/bash + + Running chsh with no parameters and editing + the shell from there would work also. + + + The shell that you wish to use must be + present in the /etc/shells file. If you + have installed a shell from the ports + collection, then this should have been done for you + already. If you installed the shell by hand, you must do + this. + + For example, if you installed bash by hand + and placed it into /usr/local/bin, you would + want to: + + &prompt.root; echo "/usr/local/bin/bash" >> /etc/shells + + Then rerun chsh. + +