xterm question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Kevin Buettner
日付:  
題目: xterm question
On Aug 31, 12:41pm, Furmanek, Greg wrote:

> Now how would you write a script that would set the $PWD in the title bar?


Take a look at how PROMPT_COMMAND gets set in /etc/bashrc on a Red Hat
system.

In case you don't have handy access to such a system, here's the
relevant line...

        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'


Kevin