zsh: datetime
Currently I’m building my own chroot-environment. Now I’ve a static zsh from cvs-tree:
[mika@tweety(519): ~/Source/zsh-cvs-040803/zsh]$ ldd Src/zsh not a dynamic executable 1 [mika@tweety(520): ~/Source/zsh-cvs-040803/zsh]$
Now I’m trying to modify my zsh-setup so it works without any more modifications out of the box in the chroot-environment.
In a chroot you’ll probably find no GNU-date so I wrote a zsh-wrapper for it:
zmodload -i zsh/datetime alias datereplacement='strftime "%Y-%m-%d" $EPOCHSECONDS' export DATE=`datereplacement`
Now you can use “$DATE” in zshrc for dynamic stuff.