/usr/share/doc/HOWTO/ja-html/Xterm-Title-4.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Xterm-Title mini-HOWTO : ¥×¥í¥ó¥×¥È¤Îɽ¼¨</TITLE>
<LINK HREF="Xterm-Title-5.html" REL=next>
<LINK HREF="Xterm-Title-3.html" REL=previous>
<LINK HREF="Xterm-Title.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Xterm-Title-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Xterm-Title-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Xterm-Title.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s4">4. ¥×¥í¥ó¥×¥È¤Îɽ¼¨</A></H2>
<P>¤³¤ÎÆÃħ¤òÀ¸¤«¤·¤¿ÊØÍø¤Ê»È¤¤Êý¤ò¤Ò¤È¤Ä¡£Ä̾ï¤Î¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ëɽ¼¨¤µ¤ì
¤ë¾ðÊó¤ò¡¢<CODE>xterm</CODE>¤Î¥¿¥¤¥È¥ë¤Ë°ÜÆ°¤µ¤»¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼¤Î¤è¤¦¤ËÊÑ¿ô
¤òÄêµÁ¤¹¤ë¤È
<BLOCKQUOTE><CODE>
<PRE>
export PS1='\u@\h:\w> '
</PRE>
</CODE></BLOCKQUOTE>
¤³¤Î·ë²Ì¡¢¼¡¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
winni@FeilSurf:~/mail>
</PRE>
</CODE></BLOCKQUOTE>
¤â¤·¥Ç¥£¥ì¥¯¥È¥ê¤ò"<CODE>/afs/rrz.uni-koeln.de/pub/packages/linux
/kernel/v2.0</CODE>"¤ËÊѹ¹¤·¤¿¤é¤É¤¦¤Ê¤ë¤Ç¤·¤ç¤¦¤«¡©¥×¥í¥ó¥×¥È¤ÏŤ¯¤Ê¤ê
¥³¥Þ¥ó¥É¤ÎÆþÎϤò¤¹¤ë¾ì½ê¤¬¶¹¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
winni@FeilSurf:/afs/rrz.uni-koeln.de/pub/packages/linux/kernel/v2.0>
</PRE>
</CODE></BLOCKQUOTE>
¤³¤ì¤ÏÈË»¨¤Ç¤¹¡£¤·¤«¤·¥¿¥¤¥È¥ë¥Ð¡¼¤Ë¤³¤Î¾ðÊó¤òÃÖ¤¤¤Æ¤·¤Þ¤¨¤ÐÁ´¤Æ²ò·è¤·
¤Þ¤¹¡£
<BLOCKQUOTE><CODE>
<PRE>
export PS1='\033]2; \u@\h:\w \007bash> '
</PRE>
</CODE></BLOCKQUOTE>
¾åµ¥³¥Þ¥ó¥É¤ÇɬÍפʥ¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤ò¥¨¥³¡¼¤·¡¢¥×¥í¥ó¥×¥È
<BLOCKQUOTE><CODE>
<PRE>
bash> _
</PRE>
</CODE></BLOCKQUOTE>
¤Î¤ßɽ¼¨¤µ¤»¤Þ¤¹¡£
»ÄÇ°¤Ê¤³¤È¤Ë<CODE>PS1</CODE>¤ÎºÇÂç¤ÎŤµ¤Ï60ʸ»úÄøÅ٤Ȥ¤¤¦À©¸Â¤¬¤¢¤ë¤Î¤Ç
Á´¤Æ¤Î¾ì¹ç¤Ç¤³¤ì¤¬¤¦¤Þ¤¯¤¤¤¯¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£Â¾¤Î¥¢¥¤¥Ç¥£¥¢¤Ï
"cd"¤È¤¤¤Ã¤¿¥·¥§¥ëÆ⢤Τâ¤Î¤ò<CODE>echo</CODE>¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹
¤ËºÆÄêµÁ¤¹¤ë¤³¤Ç¤¹¤¬¡¢¤³¤ì¤À¤È¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤·¤¿»þ¥¿¥¤¥È¥ë¥Ð¡¼¤Î
¤½¤Î¾¤Î±Æ¶Á¤¬À¸¤¸¤Æ¤·¤Þ¤¤¤ä¤Ã¤«¤¤¤Ç¤¹(¤É¤Î"cd"¤Ç¤â¥¿¥¤¥È¥ë
¤òÊѹ¹¤·¤Æ¤·¤Þ¤¤¤Þ¤¹)¡£
¤â¤Ã¤È¤â³Î¤«¤Ê¥¢¥×¥í¡¼¥Á¤Ï´Ä¶ÊÑ¿ô"<CODE>PROMPT_COMMAND</CODE>"¤ò»È¤¦¤³¤È
¤Î¤è¤¦¤Ç¤¹¡£¤³¤ÎÊÑ¿ô¤ÎÃæ¿È¤Ï¥×¥í¥°¥é¥à¤¬½ªÎ»¤·¤¿¸å¤È<CODE>bash</CODE>¥×¥í¥ó¥×¥È
¤¬ºÆ¤Óɽ¼¨¤µ¤ì¤ëÁ°¤Ë¼Â¹Ô¤µ¤ì¤ë¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ì¤Ð
¥Í¥Ã¥È¥ï¡¼¥¯´Ä¶¤Ç<CODE>xterm</CODE>¤ò¤¿¤¯¤µ¤ó³«¤¯»þ¤Ê¤ÉÊØÍø¤Ç¤¹¡£
<PRE>
export PROMPT_COMMAND='echo -ne "\033]2;$LOGNAME@$HOST Directory: \
$PWD\007\033]1;$LOGNAME@$HOST\007"
</PRE>
Æä˥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¡¼¤Î¥¦¥£¥ó¥É¥¦¥ê¥¹¥È¤ò¸«¤ë»þ¤Ê¤ÉÊØÍø¤Ç¤·¤ç¤¦¡£
¤µ¤é¤Ë¤³¤ì¤é¤ò°Ê²¼¤Î¤è¤¦¤Ê¥¹¥¯¥ê¥×¥È¤Ë½ñ¤¤¤Æ¤ª¤±¤Ð´°àú¤Ç¤¹¡£xterm¤ò»È¤Ã¤Æ
¤¤¤ë»þ¤Ë¤³¤Î´Ä¶ÊÑ¿ô¤ò¥»¥Ã¥È¤¹¤ë¤À¤±¤Ç¤¹¡£
<HR>
<PRE>
if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o \
"$TERM" = "rxvt" -o "$TERM" = "vs100" ]
then
PS1='bash> '
PS2='bash>> '
PS3='bash>>> '
export PROMPT_COMMAND='echo -ne "\033]2;$LOGNAME@$HOST \
Directory: $PWD\007\033]1;$LOGNAME@$HOST\007"'
fi
</PRE>
<HR>
<P>
<P>¥×¥í¥ó¥×¥È"bash>"¤Ï¡¢Â¿¤¯¤Î¥×¥í¥°¥é¥à(gnuplot,ncftp, gap,
kash, ...)¤¬¥×¥í¥°¥é¥à̾¤ò¤Ï¤¸¤á¤ËÃÖ¤¤¤Æ¤¤¤ë¤Î¤Ç¡¢Æ±¤¸¤è¤¦¤ËÅý°ì¤·¤Þ¤·¤¿¡£
¤·¤«¤·¤³¤ì¤Ç¤â"ytalk"¤Î¤è¤¦¤Ê¥µ¥Ö¥·¥§¥ë¤òµ¯Æ°¤¹¤ë¥×¥í¥°¥é¥à
¤Ç¤ÏÍð¤ì¤Æ¤·¤Þ¤¦¤È¤¤¤¦¾ã³²¤¬¤¢¤ê¤Þ¤¹¡£¤â¤·¤³¤ì¤Ë½Ð¤¯¤ï¤·¤¿¤é
<BLOCKQUOTE><CODE>
<PRE>
unset PROMPT_COMMAND
</PRE>
</CODE></BLOCKQUOTE>
¤È¤·¤Æ²¼¤µ¤¤¡£
<P>
Happy Linuxing
<P>-Winfried Trumper
<A HREF="winni@xpilot.org">winni@xpilot.org</A><P>
<HR>
<A HREF="Xterm-Title-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Xterm-Title-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Xterm-Title.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|