[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xtset or xtermset tricks?
- Subject: xtset or xtermset tricks?
- From: duanewinner at att.net (Duane Winner)
- Date: Tue Aug 17 09:41:28 2004
Found a solution!
In ~/.bashrc, put this:
builtin cd "$@"
Duane Winner wrote:
> Hey, does anybody know of any useful tricks for automating xtset or
> I use xtset to set the title and icon labels to user_(_at_)_host:path so I can
> keep track of my xterms littered all over my desktop (pretty frequent! :)
> But it sure would be nice to have them updated whenever I 'cd' to
> another directory or 'su' to another user or 'ssh' to another host!
> I'm sure there's got to be someway to make this a little more seamless
> then running # xtset %u_(_at_)_%h:`pwd` everytime, but I'm just not good enough
> with shell programming to know how to do this.
> The closest I came was writing a small bash script that does:
> for filename in /dev/ttyp*; do
> /usr/local/bin/xtset %u_(_at_)_%h:`pwd` > "$filename"
> And thought about cron'ing it (every minute), but the problem is that
> when I tested this, all my xterms get the same title/icon based on who
> is running the script and where at the time. No good :(
> (And of course this would be useless to update the titles/icons for
> xterms that are remote shells (ssh).
> Any thoughts?
> freebsd-questions_(_at_)_freebsd_(_dot_)_org mailing list
> To unsubscribe, send any mail to
Visit your host, monkey.org