From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9667 invoked by alias); 8 Jun 2010 10:24:18 -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: 15101 Received: (qmail 6118 invoked from network); 8 Jun 2010 10:24:16 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.161.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=3WxtUdRi51yCCEXpq71O4uFMCK3tV5+n0eMbT3q+eco=; b=mgOXJ2o3TN0X5CQ/PJ0nAbIL+GyuF9vu9y61Mqrqvh/nRvxG7wHVFrii/TlM9NLhxK VoumKXvkAMb75TWCUWtGRBvV8dKErQlDEFpM1Fupe/HIhyWM5iVK0EvjhzZ4hfZ/CSgi Nxzb/UeKphK2R9ikSabF7nABKvXrauq4PWh4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=MVpg0C5+wbqR5creWB4hnnzygkOdWiO2PpPHP/dAavrOHd4GqjDHE6opSgUX2bjvid z4U9+663mmwuj7gnq7EOhrlS0y7yANkmUUga6Z05m5IBzzly/gNK/8hBMLu4eJfLa0uK UlS3qLqPHTJ8pL2stPnnc+Aot0zzn5S7mQfKI= Message-ID: <4C0E1A48.3010700@googlemail.com> Date: Tue, 08 Jun 2010 12:24:08 +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 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