Date: Tue, 30 Jun 2020 14:36:25 +0200 From: Polytropon <freebsd@edvax.de> To: Manish Jain <bourne.identity@hotmail.com> Cc: Brandon helsley <brandon.helsley@hotmail.com>, freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Shell Message-ID: <20200630143625.10093694.freebsd@edvax.de> In-Reply-To: <DB8PR06MB6442289C119C69BDF4303E72F66F0@DB8PR06MB6442.eurprd06.prod.outlook.com> References: <CY4PR19MB010400AC4940C67421BFADE8F96E0@CY4PR19MB0104.namprd19.prod.outlook.com> <DB8PR06MB6442289C119C69BDF4303E72F66F0@DB8PR06MB6442.eurprd06.prod.outlook.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Jun 2020 14:44:34 +0530, Manish Jain wrote: > If you do not want to use poshinit, you can yourself put the following > into your .bashrc: > > export PS1='`pwd` # ' It is not required to make an external program call for bash; like the C shell, it has "internal variables" that can be used. For the standard UNIX prompt (in ~/.bashrc): export PS1="\u@\h:\w\$ " This mimics the C shell's default prompt (in /etc/cshrc): set prompt = "%N@%m:%~%# " set promptchars = "%#" The only difference of course is that the C shell uses # and % instead of # and $. For the ugly Linux-like prompt (in ~/.bashrc): export PS1="[\u@\h] \w \$ " I cannot recommend this. ;-) -- 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?20200630143625.10093694.freebsd>
