Re: a grab bag of customizations



At Wed, 10 Feb 2010 22:39:51 -0700 Phred Phungus <Phred@xxxxxxxxxxxxxxx> wrote:


Robert Heller wrote:
At Wed, 10 Feb 2010 19:14:54 -0700 Phred Phungus <Phred@xxxxxxxxxxxxxxx> wrote:

Hello newsgroup,

I continue to enjoy using the linux platform and would like to modify it
in ways that are beyond my current game.

When I installed, I was asked for a name and gave a nice, short one:
dan. Thereafter, every time I bring up a terminal, it looks like this:

dan@dan-desktop:~$ locate tja42

How can I shorten this prompt? $ would work splendidly.

man bash

Then search for 'PROMPTING' (type: '/prompting' at the ':' prompt).
Then read what it says there.

(The 'man' command displays the manual page for the command you specify.
Type 'man man' for more informaion abou the man command itself.)


Well I've really screwed the pooch here. Apparently what you're
supposed to do is change PS1 in bashrc. Well which bashrc:

dan@dan-desktop:~$ locate bashrc
/etc/bash.bashrc
/etc/skel/.bashrc
/home/dan/.bashrc
/usr/share/base-files/dot.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/bash.bashrc
/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bashrc
dan@dan-desktop:~$

[could only paste as quotation]

One of the 9,750,000 hits recommended that one change the first. I did
that, and now everything has gone wonky. Thunderbird keeps prompting me
for my new identity even though I've changed it back.

Does anyone know which bashrc to change?

You should only mess with the one in your home directory, unless you
really know what you are doing. So the correct one is

/home/dan/.bashrc




--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
heller@xxxxxxxxxxxx -- http://www.deepsoft.com/ModelRailroadSystem/

.



Relevant Pages

  • Re: a grab bag of customizations
    ... I continue to enjoy using the linux platform and would like to modify it in ways that are beyond my current game. ... How can I shorten this prompt? ... (The 'man' command displays the manual page for the command you specify. ... Apparently what you're supposed to do is change PS1 in bashrc. ...
    (comp.os.linux.misc)
  • bashrc and .profile for password-less ssh
    ... I am having some issue in executing in setting values in .bashrc file on ssh ... based command execution. ...
    (Ubuntu)
  • Re: Debug the skipping of .bashrc when bang out from vim PC version
    ... shell return 127 bash: cat: command not found ... Both accounts have the same .bashrc, ... administrator account, I ran the PC-based gvim as LocalAdmin. ...
    (comp.unix.shell)
  • Re: Debug the skipping of .bashrc when bang out from vim PC version
    ... from my Administrator account. ... shell return 127 bash: cat: command not found ... Both accounts have the same .bashrc, ...
    (comp.unix.shell)
  • newgrp (or equivalent) in .bashrc
    ... It needs to be in the if to prevent infinite looping because newgrp ... can't figure out how to make a similar change in my .bashrc. ... starts a new bash shell in interactive mode with no command line, ...
    (comp.unix.questions)