Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2020 17:28:18 +0200
From:      Polytropon <freebsd@edvax.de>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Cc:        Brandon helsley <brandon.helsley@hotmail.com>
Subject:   Re: Shell
Message-ID:  <20200630172818.36242967.freebsd@edvax.de>
In-Reply-To: <alpine.DEB.2.21.2006301506140.9735@azone.org>
References:  <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> <alpine.DEB.2.21.2006301506140.9735@azone.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 30 Jun 2020 15:10:16 +0000 (UTC), davidson@freevolt.org wrote:
> When logged in as that user, you can see what default shell they have
> like so:
> 
>   $ finger `whoami`
>   Login: poe            Name: little red riding hood
>   Directory: /home/poe  Shell: /bin/sh
>   [...]                 ^^^^^  ^^^^^^^
> 
> If the shell is /bin/sh, then the configuration file for that user's
> shell is in ~/.shrc. You might be able to set the prompt to something
> more helpful by uncommenting some lines in that file.
> 
> Uncomment these lines, for example:
> 
>   $ cat ~/.shrc
>   [...]
>   # # set prompt; ``username@hostname$ ''
>   # PS1="`whoami`@`hostname | sed 's/\..*//'`"
>   # case `id -u` in
>   # 	 0) PS1="${PS1}# ";;
>   #       *) PS1="${PS1}$ ";;
>   # esac

The following entry resembles the standard UNIX prompts as
seen in the default configuration (for the C shell):

	PS1="`whoami`@`hostname | sed 's/\..*//'`:`pwd`\$ "

The only exception is that the home directory is not
abbreviated as ~.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200630172818.36242967.freebsd>