Sadly function in zsh are global so prefix all function and global var names with _ksi_ as poor mans namespacing.