[X-Unix] Changing the default shell

Bert Knabe bert.knabe at lubbockonline.com
Tue Jul 13 22:35:57 PDT 2004


On Jul 14, 2004, at 12:15 AM, James Bucanek wrote:

*snip*

>> I've changed the default shell to bash, which is good. But I thought
>> that doing that instead of using the 'temporary' method of having
>> execute a command (in this case /bin/bash/) using the Terminal
>> Preferences would have bash showing the path to your location in the
>> hierarchy the way tcsh does. How would I tell it to do that?
>
> It should do it by default, unless your bash configuration has been 
> altered.
>
> Here's the default bashrc file that's installed in Panther:
>
>     james% cat /etc/bashrc
>     # System-wide .bashrc file for interactive bash(1) shells.
>     PS1='\h:\w \u\$ '
>     # Make bash check it's window size after a process completes
>     shopt -s checkwinsize
>
> This should set PS1 (which is the main shell prompt) to '\h:\w \u\$ '. 
>  That should display the following prompt
>
>     <machine_name>:<pwd> <whoami>$
>
> If PS1 isn't that string, then something else is changing it (or you 
> don't have read access to /etc/bashrc).

Thanks. I'll check that out tomorrow (it's quittin' time).

Bert Knabe
Computer Technician
Lubbock Avalanche Journal
(806) 766-2158



More information about the X-Unix mailing list