From: Grant Taylor <gtaylor@tnetconsulting.net>
To: zsh-users@zsh.org
Subject: Re: Alias call in function fails...
Date: Tue, 23 Jun 2020 20:58:40 -0600 [thread overview]
Message-ID: <5fb1e39c-4469-2326-190e-7cda5f6f4017@tnetconsulting.net> (raw)
In-Reply-To: <0DAEBDBF-F680-4BE8-BF63-AEE98236F631@easesoftware.com>
[-- Attachment #1: Type: text/plain, Size: 991 bytes --]
On 6/23/20 3:14 PM, Perry Smith wrote:
> I’d really appreciate if you could give a few examples of this.
Here's a different example of how I used a global (-g) alias:
% alias -g PTBONE="-R 127.0.0.1:3128:127.0.0.1:3128"
% ssh PTBONE host.example.net
PTBONE is an alias that has the long string of options substituted in
it's place.
I chose a global alias because I rarely wanted the PTBONE configuration
on my ssh connections. But I wanted it often enough that typing out the
full thing was a PITA. I felt like adding PTBONE /when/ I wanted it was
a reasonable compromise.
Backstory: I was periodically updating a bunch of Red Hat systems that
were configured to use a proxy on localhost (127.0.0.1 to avoid ::1
confusion). Said proxy was created by OpenSSH's remote port forwarding
back to a local (caching) proxy like Squid. PTBONE is short for Proxy
Trombone, as a reference / nod to what the traffic does.
--
Grant. . . .
unix || die
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4013 bytes --]
next prev parent reply other threads:[~2020-06-24 2:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 12:49 Frank Gallacher
2020-06-22 23:23 ` Mikael Magnusson
2020-06-23 8:37 ` Andreas Kusalananda Kähäri
2020-06-23 9:14 ` Peter Stephenson
2020-06-23 9:55 ` Mikael Magnusson
2020-06-23 11:28 ` Andreas Kusalananda Kähäri
2020-06-23 12:04 ` Daniel Shahaf
2020-06-23 12:46 ` Perry Smith
2020-06-23 13:10 ` Kamil Dudka
2020-06-23 16:03 ` Bart Schaefer
2020-06-23 21:14 ` Perry Smith
2020-06-23 22:54 ` Daniel Shahaf
2020-06-23 23:29 ` Perry Smith
2020-06-23 23:43 ` Bart Schaefer
2020-06-24 0:47 ` Perry Smith
2020-06-24 9:28 ` Daniel Shahaf
2020-06-24 12:55 ` Perry Smith
2020-06-23 23:40 ` Bart Schaefer
2020-06-24 10:10 ` Daniel Shahaf
2020-06-24 10:47 ` Daniel Shahaf
2020-06-24 2:58 ` Grant Taylor [this message]
2020-06-29 16:24 ` Sebastian Gniazdowski
2020-06-29 16:55 ` Bart Schaefer
2020-06-30 4:02 ` Bart Schaefer
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=5fb1e39c-4469-2326-190e-7cda5f6f4017@tnetconsulting.net \
--to=gtaylor@tnetconsulting.net \
--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).