zsh-users
 help / color / mirror / code / Atom feed
* Simple Tip of the Day
@ 2005-12-01 20:38 zzapper
  2005-12-02  1:09 ` Vincent Lefevre
  0 siblings, 1 reply; 10+ messages in thread
From: zzapper @ 2005-12-01 20:38 UTC (permalink / raw)
  To: zsh-users

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/


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-12-04  1:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 20:38 Simple Tip of the Day zzapper
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

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).