167 lines
2.7 KiB
HTML
167 lines
2.7 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Loading Different Prompts in Different X Terms</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Bash Prompt HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Loading a Different Prompt"
|
|
HREF="c641.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Loading a Different Prompt, Immediately"
|
|
HREF="x655.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Loading Prompt Colours Dynamically"
|
|
HREF="c670.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Bash Prompt HOWTO: </TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x655.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 9. Loading a Different Prompt</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="c670.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="AEN664"
|
|
></A
|
|
>9.3. Loading Different Prompts in Different X Terms</H1
|
|
><P
|
|
>If you have a specific prompt to go with a particular project, or some
|
|
reason to load different prompts at different times, you can use multiple
|
|
bashrc files instead of always using your <TT
|
|
CLASS="FILENAME"
|
|
>~/.bashrc</TT
|
|
>
|
|
file. The Bash command is something like <TT
|
|
CLASS="USERINPUT"
|
|
><B
|
|
>bash --rcfile
|
|
/home/giles/.bashprompt/bashrc/bashrcdan</B
|
|
></TT
|
|
>, which will start a
|
|
new version of Bash in your current terminal. To use this in combination
|
|
with a Window Manager menuing system, use a command like <TT
|
|
CLASS="USERINPUT"
|
|
><B
|
|
>rxvt -e
|
|
bash --rcfile /home/giles/.bashprompt/bashrc/bashrcdan</B
|
|
></TT
|
|
>. The
|
|
exact command you use will be dependent on the syntax of your X term of
|
|
choice and the location of the bashrc file you're using. </P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x655.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c670.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Loading a Different Prompt, Immediately</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c641.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Loading Prompt Colours Dynamically</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |