Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
from tcsh to zsh (alias)
- X-seq: zsh-users 15101
- From: Leander Jedamus <ljedamus@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: from tcsh to zsh (alias)
- Date: Tue, 08 Jun 2010 12:24:08 +0200
- 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=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author