From: zzapper <david@tvis.co.uk>
To: zsh-users@sunsite.dk
Subject: Simple Tip of the Day
Date: Thu, 01 Dec 2005 20:38:16 +0000 [thread overview]
Message-ID: <dfnuo1160g88dl9rd0pig04k6enf7fqpr6@4ax.com> (raw)
Hi,
It can be very useful to set a "marker" variable when you are copying/comparing files in complicated
and different paths
eg in directory
>cd /xx/yy/ggg/ccc/
type
>S=`pwd`
Then from anywhere else you can type
>cp $S/somefile<TAB> .
Where the <TAB> indicates that all of zsh's completions work
A useful alias to automate this
alias SRC='S=`pwd`;echo "S=$S"'
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
next reply other threads:[~2005-12-01 20:44 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-01 20:38 zzapper [this message]
2005-12-02 1:09 ` Vincent Lefevre
2005-12-02 9:13 ` Thorsten Kampe
2005-12-02 12:49 ` Mikael Magnusson
2005-12-02 19:20 ` zzapper
2005-12-03 20:28 ` zzapper
2005-12-03 22:08 ` Mikael Magnusson
2005-12-03 22:20 ` zzapper
2005-12-04 0:24 ` compinit security (Re: Simple Tip of the Day) Bart Schaefer
2005-12-04 1:32 ` Simple Tip of the Day Mikael Magnusson
-- strict thread matches above, loose matches on Subject: below --
2005-11-30 20:32 Simple Tip of The Day zzapper
2005-11-30 23:27 ` Przemyslaw Gawronski
2005-10-28 11:11 Simple Tip of the Day zzapper
2005-10-28 11:32 ` Jean Chalard
2005-10-28 15:25 ` Bart Schaefer
2005-10-28 17:40 ` Jean Chalard
2005-10-28 15:53 ` zzapper
2005-10-28 11:47 ` Hannu Koivisto
2005-10-28 12:26 ` Nikolai Weibull
2005-10-29 12:37 ` Konstantin Sobolev
2005-10-29 14:52 ` Christian Taylor
2005-10-28 20:08 ` DervishD
2005-10-30 5:10 ` Philippe Troin
2005-11-01 16:58 ` Vincent Lefevre
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=dfnuo1160g88dl9rd0pig04k6enf7fqpr6@4ax.com \
--to=david@tvis.co.uk \
--cc=zsh-users@sunsite.dk \
/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).