Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Simple Tip of the Day



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