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

Re: Alias for a dynamic variable?



Peter Stephenson <pws@xxxxxxx> wrote in news:EXCHANGE03cWo7Z0xK40000be27
@exchange03.csr.com:

> alias -g s='$OLDPWD'
this works such that I can
>cd s
but I cant do
>cp s/somefile .
 
So decided what I really want is just a shorter name for $OLDPWD

so I can do say

> cp $OP/somefile .

In fact tab completion helps so I don't have to type all of $OLDPWD

-- 
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips



Messages sorted by: Reverse Date, Date, Thread, Author