Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Simple Tip of the Day
- X-seq: zsh-users 9729
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Simple Tip of the Day
- Date: Thu, 01 Dec 2005 20:38:16 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
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/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author