ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  bash on Mac OS X
Subject:   if only ...
Date:   2004-02-25 08:09:07
From:   henksmets
... I could do this in bash


alias precmd 'printf "\033]0;%s @ $SHORTHOST\007" "${cwd}" | sed -e "s%$HOME%~%"'
sched +0:00 alias postcmd 'printf "\033]0;%s @ $SHORTHOST\007" "\!#"'


This gives me dynamic hostname information in the terminal information. When I ssh to a server that terminal window is easily recognisable.


1 to 1 of 1
  1. if only ...
    2004-02-25 08:54:46  blalor [View]

    • if only ...
      2004-02-28 04:29:31  hysterion [View]

    • if only ...
      2004-02-27 04:04:25  henksmets [View]

1 to 1 of 1