OS : Fedora Workstation 34
Shell : bash
I found a
PS1 variable which I would like to set to make my bash prompt more neat.
And I need to set a custom
PATH variable in my bash shell.
So, every time I log into the gnome-terminal (bash), I need my custom
PATH variables to be set.
My PC has only 1 *custom user (ghislaine), so I looked at my home directory /home/ghislaine.
.bash_profile and .
bashrc startup files in the home directory. But I do not see the .profile which I remember seeing in Solaris/AIX and may be enterprise Linux distributions like RHEL, Oracle Linux, etc
[ghislaine@localhost ~]$ ls -ld .b* -rw-------. 1 ghislaine ghislaine 22426 Jun 3 22:20 .bash_history -rw-r--r--. 1 ghislaine ghislaine 18 Feb 16 2019 .bash_logout -rw-r--r--. 1 ghislaine ghislaine 155 Jun 3 23:00 .bash_profile -rw-r--r--. 1 ghislaine ghislaine 488 Apr 6 22:34 .bashrc [ghislaine@localhost ~]$ [ghislaine@localhost ~]$ [ghislaine@localhost ~]$ ls -l .profile ls: cannot access '.profile': No such file or directory [ghislaine@localhost ~]$
So, in Fedora, what is the recommended/neat way to set a custom PS1 and PATH variable for my user ?
*By custom user, I mean the user that is manually created at the end of Fedora installation and granted the sudo privilege.