Do you know ZSH?
I previously used Bash for scripting but now prefer ZSH. I've developed my own set of primitives so for instance
> cp NF ND
Will copy the newest file in the directory to the newest sub-directory.
NF & ND are global aliases (global means can be used any where in command line)
alias -g ND='*(/om[1])' # newest directory
alias -g NF='*(.om[1])' # newest file
zsh has many wonderful features, a small number are listed here:-
http://www.successtheory.com/tips/zshtips.html
Labels: zsh

0 Comments:
Post a Comment
<< Home