Some dumb questions born of frustration
Janina Sajka
janina at rednote.net
Thu Oct 27 14:22:40 UTC 2016
Jeffery Mewtamer writes:
> Okay, created a single line .bash_profile with the source ~/.bashrc
> line and it works. Then, since both files are, for me at least, single
> liners, I tried .bash_profile with just the export PS1='\$' and no
> .bashrc and got the same result. For such minimalist configs, is there
> any reason to prefer a separate .bashrc?
>
Probably not in this case.
The various versions of .profile, e.g. .bash_profile, are only used when
for shells that are login shells--except graphical logins don't source
profile.
Your .bashrc is read by scripts, and such.
This is my current understanding of how this all fits together. Hope
it's helpful.
Janina
> And now that I don't have to manually type PS1=$ everytime I switch to
> a fresh terminal, is there any way I could add a short indicator of
> the active terminal before the $? Something along the lines of tty2$
> when I'm using tty2 and tty3$ when I'm using tty3.
>
> --
> Sincerely,
>
> Jeffery Wright
> President Emeritus, Nu Nu Chapter, Phi Theta Kappa.
> Former Secretary, Student Government Association, College of the Albemarle.
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
--
Janina Sajka, Phone: +1.443.300.2200
sip:janina at asterisk.rednote.net
Email: janina at rednote.net
Linux Foundation Fellow
Executive Chair, Accessibility Workgroup: http://a11y.org
The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI)
Chair, Accessible Platform Architectures http://www.w3.org/wai/apa
More information about the Blinux-list
mailing list