From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9143 invoked by alias); 8 Jun 2010 10:43:24 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15103 Received: (qmail 18243 invoked from network); 8 Jun 2010 10:43:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at web.de does not designate permitted sender hosts) Message-ID: <4C0E19F9.9040404@web.de> Date: Tue, 08 Jun 2010 12:22:49 +0200 From: Leander Jedamus User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: from tcsh to zsh (alias) Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: ljedamus@web.de X-Sender: ljedamus@web.de X-Provags-ID: V01U2FsdGVkX18ES/54F48j/BffcFrnIlT86DsWStPh1C8HnuTX bxpAaHpA5XRPftbZZqfym/qFB3mxkta3QP25xfwvcWxejEGHzs xVXwRCrKE= Hi! When I log in on antother machine with ssh, i want, that in the terminal window the address of this machine is shown. When I log out, the original machine name should be displayed. In tcsh I do the following: alias cwdcmd 'echo -n "\033]2;${USER}@${HOST}:$cwd\007\033]1;${USER}@${HOST}:$cwd\007"' alias ssh 'ssh \!* ; cd .' Now all parameters for the alias go to the original ssh-program. After that a "cd ." is done and everything is okay. Now I want that under zsh: if [ -n "$DISPLAY" ]; then chpwd() { echo -n "\e]2;${USER}@${HOST}:${PWD}\007\e]1;${USER}@${HOST}:${PWD}\007"; };# chpwd() cd . fi but now: alias ssh="ssh $* ; cd ." doesn't work as extpected. What do I have to do now? Thanks in advance Leander Jedamus