Don't understand german? Read or subscribe to my english-only feed.

zsh 4.2.0 released

Yes – zsh version 4.2.0 is available. Check out the Release Notes for new features. What’s new? Suffix aliases allow the shell to run a command on a file by suffix:

[mika@grml: ~]% grep 'alias.*tex' .zshrc
    alias -s tex=vim
[mika@grml: ~]%

Now a ‘$ file.tex’ calls vim with file.tex :-). Nice modules/functions are especially zsh/net/socket, zsh/net/tcp and zcalc calculator.

But I noticed a problem, starting zsh brings me to “/” instead of “~”. I couldn’t find any mistakes (neither in source nor in my settings [zsh <4.2 works as it should)], so I updated my zshrc:

if [[ $ZSH_VERSION == 4.2.* ]]; then
# Suffix aliases allow the shell to run a command on a file by suffix,
# e.g `alias -s ps=gv' makes `foo.ps' execute `gv foo.ps'.
    alias -s tex=vim
    cd ~/
fi

Comments are closed.