:: Re: [DNG] Does dunst require dbus?
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Ian Zimmerman
日付:  
To: dng
題目: Re: [DNG] Does dunst require dbus?
On 2016-01-23 21:11 +0100, Adam Borowski wrote:

> > > different color terminals for
> > > ssh sessions
> >
> > I had played a bit with the tiling and highly (GUI) configurable
> > "Terminator" but was bounced back to xterm very quickly due to its
> > footprint and wrote the following secremote.sh script. It has not
> > been tested with more than the few defined colors but I am not aware
> > of any limitations other than that of the X11 palette.
>
> This approach breaks the moment you ssh from an existing terminal,
> especially if you ssh from box 2 to box 3.
>
> I'd instead recommend setting PS1 in .bashrc on those machines to
> something distinct.


If your shell is bash everywhere, and your emulator groks the xterm
escape sequences, doing what I do may be best:

    PROMPT_COMMAND="echo -ne \"\E]0; $$ ${LOGNAME}@${HOSTNAME}:\${PWD} \a\""


This sets the window title to something like

    2232 itz@matica:/home/itz


no matter where you're sitting. The process number comes handy when
investigating things with tools like ps, top or lsof.

--
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.