Changeset 683e848a


Ignore:
Timestamp:
06/13/2005 04:01:10 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
deddaa7
Parents:
eeb1e577
Message:

Fixed startup scripts; removed xterm-title.sh and added extra-prompt.sh

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4587 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    reeb1e577 r683e848a  
    2424
    2525  <itemizedlist>
     26
     27    <listitem>
     28      <para>June 12th, 2005 [bdubbs]: Corrected startup scripts.  Removed
     29      xterm-title and substituted extra-prompt.sh.</para>
     30    </listitem>
    2631
    2732    <listitem>
  • postlfs/config/profile.xml

    reeb1e577 r683e848a  
    314314    </sect3>
    315315
    316     <sect3 id="titlebars.sh">
    317       <title>/etc/profile.d/xterm-titlebars.sh</title>
    318 
    319       <indexterm zone="postlfs-config-profile titlebars.sh">
    320         <primary sortas="e-etc-profile.d-titlebars.sh">/etc/profile.d/titlebars.sh</primary>
    321       </indexterm>
    322 
    323       <para>This script shows an example of a different way of setting the prompt.
    324       The normal variable, <envar>PS1</envar>, is supplemented by
     316    <sect3 id="extra-prompt.sh">
     317      <title>/etc/profile.d/extra-prompt.sh</title>
     318
     319      <indexterm zone="postlfs-config-profile extra-prompt.sh">
     320        <primary sortas="e-etc-profile.d-prompt.sh">/etc/profile.d/extra-prompt.sh</primary>
     321      </indexterm>
     322
     323      <para>This script shows an example of a different way of setting the
     324      prompt.  The normal variable, <envar>PS1</envar>, is supplemented by
    325325      <envar>PROMPT_COMMAND</envar>. If set, the value of
    326       <envar>PROMPT_COMMAND</envar> is executed as a command prior to
    327       issuing each primary prompt.</para>
    328 
    329 <screen role="root"><userinput>cat &gt; /etc/profile.d/xterm-titlebars.sh &lt;&lt; "EOF"
    330 <literal># The substring match ensures this works for "xterm" and "xterm-xfree86".
    331 if [ "${TERM:0:5}" = "xterm" ]; then
    332   PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME} : ${PWD}\007"'
    333   export PROMPT_COMMAND
    334 fi</literal>
    335 EOF</userinput></screen>
     326      <envar>PROMPT_COMMAND</envar> is executed as a command prior to issuing
     327      each primary prompt.  The sequence \e is an ESC character.  \a is a
     328      BEL character.  For a reference on xterm escape sequences, see <ulink
     329      url="http://rtfm.etla.org/xterm/ctlseq.html"/></para>
     330
     331<screen role="root"><userinput>cat &gt; /etc/profile.d/extra-prompt.sh &lt;&lt; "EOF"
     332<literal>PROMPT_COMMAND="echo -ne '\e[1m${USER}@${HOSTNAME} : ${PWD}\e[0m\a'"
     333export PROMPT_COMMAND</literal>
     334EOF</userinput></screen>
     335
     336    <para>The escape sequences above are BOLD, NORMAL, and BEL.</para>
    336337
    337338    </sect3>
     
    437438fi
    438439
    439 if [ -f /etc/profile.d/xterm-titlebars.sh ]; then
    440   source /etc/profile.d/xterm-titlebars.sh
    441 fi
    442 
    443440# System wide aliases and functions.
    444441
Note: See TracChangeset for help on using the changeset viewer.