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; 24+ 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] 24+ messages in thread
* Simple Tip of The Day
@ 2005-11-30 20:32 zzapper
  2005-11-30 23:27 ` Przemyslaw Gawronski
  0 siblings, 1 reply; 24+ messages in thread
From: zzapper @ 2005-11-30 20:32 UTC (permalink / raw)
  To: zsh-users

Hi 
I expect everyone knows the brilliant cd substitution command but here it is again

cd old new

eg I'm in directory

/c/inetpub/wwwexp/cpg142/albums/userpics

and I want to cd to

/c/inetpub/wwwexp/cpg135/albums/userpics

well just do

cd 42 35

and Bob's your Auntie!

Are there any corrollaries to this?
-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Simple Tip of the Day
@ 2005-10-28 11:11 zzapper
  2005-10-28 11:32 ` Jean Chalard
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: zzapper @ 2005-10-28 11:11 UTC (permalink / raw)
  To: zsh-users

Hi,

from your prompt type 
>bindkey
then 
> zstyle


to see what you've got setup and may have forgotten about

my favorite


bindkey -M viins '^O' copy-prev-word

"^O" copy-prev-word

allows me to type say

> cp longfilename.tex ^O
> cp longfilename.tex longfilename.tex
which I then modify

Your most useful binding?

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


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

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

Thread overview: 24+ 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
  -- 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

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