Saturday 15 May 2010

Is there any file that accurev reads when login? -


In linux, I need to log in once to enter, PS1 changes in the following:

Suppose paths ~ / myfiles / accurev / ws / myworkspace

  & lt; Username & gt; @ & Lt; MachineName & gt; My workplaces located in : ACCUREV & gt;  

Therefore, when I ~ / myfiles / accurev / ws / myworkspace / myproject1 / org / daz / from the CD, then be PS1:

< Previous> & lt; Username & gt; @ & Lt; Machine name & gt; : ACCUREV / myproject1 / org / daz & gt;

You can use the data to drag accurev info It may stop, but it may be annoying at every prompt load because the command takes a few seconds to complete. You may get angry by thinking that your PWD has changed and can only be run when changing the directory. For example, a way to get your PWD path relative to the 'top' of Aquarium information is:

  PWD | Cut-b_accurev information 2 & gt; / Dev / null | Grep Top | Awk '{print $ 2}' | | Wc -c | Awk '{print $ 1}' `- 2> gt; / Dev / null  

You can leave it in PS1, but then each prompt will take 1-2 extra seconds. If you wanted to do this only on directory changes, then you might use PROMPT_COMMAND to work but only if PWD! = OLDPWD .

achievable? Yes. Worth it? it's hard to say.

Oh, and look for your colors as specifically for PS1 definition below. This should give you some ideas.


No comments:

Post a Comment