From: Sebastian Stark <seb-zsh@biskalar.de>
To: Leander Jedamus <ljedamus@googlemail.com>
Cc: zsh-users@zsh.org
Subject: Re: from tcsh to zsh (alias)
Date: Tue, 8 Jun 2010 13:04:04 +0200 [thread overview]
Message-ID: <F3802F01-FED8-4323-A18F-8A4C1EEBCA32@biskalar.de> (raw)
In-Reply-To: <4C0E1EC5.607@googlemail.com>
Am 08.06.2010 um 12:43 schrieb Leander Jedamus:
> Am 08.06.2010 12:32, schrieb Peter Stephenson:
>> ssh "$@"
> Now it says:
> ssh:2: maximum nested function level reached
> How can I prevent loops? Ah, I read some further:
> ssh() {
> command ssh "$@"
> cd .
> }
A function like this even works in case of failure of the ssh command as well as when ssh is still trying to connect:
ssh () {
set_title ${*##-*}
{
command ssh "$@"
} always {
set_title ${HOST/.*}
}
}
next prev parent reply other threads:[~2010-06-08 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 10:24 Leander Jedamus
2010-06-08 10:32 ` Peter Stephenson
2010-06-08 10:43 ` Leander Jedamus
2010-06-08 11:04 ` Sebastian Stark [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-06-08 10:22 Leander Jedamus
2010-06-08 20:22 ` Wayne Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F3802F01-FED8-4323-A18F-8A4C1EEBCA32@biskalar.de \
--to=seb-zsh@biskalar.de \
--cc=ljedamus@googlemail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).