Re: bashrc problem

2022-01-12 Thread Yamadaえりな
Thanks a lot @Will Mengarini On Wed, Jan 12, 2022 at 8:21 PM Will Mengarini wrote: > * Yamada??? [22-01/12=We 20:10 +0800]: > > Do you mean if .bash_profile exists, .bashrc will be ignored? > > Sometimes. From `man bash`: > When bash is invoked as an interactive login shell, or as a > non

Re: bashrc problem

2022-01-12 Thread Will Mengarini
* Yamada??? [22-01/12=We 20:10 +0800]: > Do you mean if .bash_profile exists, .bashrc will be ignored? Sometimes. From `man bash`: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /

Re: bashrc problem

2022-01-12 Thread Will Mengarini
* Yamada??? [22-01/12=We 19:49 +0800]: > I have a .bashrc file in my home dir, whose content is shown as follows. > But every time I log into the system, I have to source this file by hand. > > $ which scala > /usr/bin/scala > > $ cat .bashrc > #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO

Re: bashrc problem

2022-01-12 Thread Yamadaえりな
Do you mean if .bash_profile exists, .bashrc will be ignored? Thanks. On Wed, Jan 12, 2022 at 8:07 PM Will Mengarini wrote: > * Yamada??? [22-01/12=We 19:49 +0800]: > > I have a .bashrc file in my home dir, whose content is shown as follows. > > But every time I log into the system, I have to

Re: .bashrc problem--"ls" output and root prompt

2007-08-22 Thread Ansgar Esztermann
On Tue, Aug 21, 2007 at 04:14:04PM -0700, Dr. Jennifer Nussbaum wrote: > > PS1='\h\w $ '; export PS1 > > So, nothing fancy. How do i get my coloured "ls" back, > and my "#" prompt as sudo'ed root? Use \$ rather than a plain $ to get # as root. A. -- Ansgar Esztermann Researcher & Sysadmin

Re: .bashrc problem--"ls" output and root prompt

2007-08-21 Thread Sergio Cuéllar Valdés
2007/8/21, Dr. Jennifer Nussbaum <[EMAIL PROTECTED]>: > > Im a new Debian Etch user, coming from FreeBSD. When i > first installed my system, running the "ls" command > would > give me coloured output (executables one colour, > directories another). Also, when I sudo'ed to root, i > would get the u