On 08/02/2011 05:09 PM, Jérémie Roquet wrote: > replace-pacman-command() { > BUFFER=${BUFFER/pacman [-a-zA-Z]#/pacman $@} > } > Thanks, this is quite readable! I'll take this solution but just to have a explicit no: There is no way doing this only via zle?