Shell
Polytropon
freebsd at edvax.de
Tue Jun 30 12:36:29 UTC 2020
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, ...
More information about the freebsd-questions
mailing list