Skip to content

Plugin Development Guide

Guten edited this page Oct 15, 2012 · 3 revisions

Plugin Development Guide

WikiPlugin Development Guide

Follow Coding Style Guide.

Layouts

~/.zsh/
	foo.zsh              # main plugin file.
	foo.profile.zsh      # load by ~/.zprofile
	completions/_foo     # always put completion code here. 
	bin/                 # put bin script here.
	scripts/             # some helper scripts.

Plugin Nameing

archlinux.zsh includes archlinux related utils and pacman command. pacman is default package for archlinux.

yaourt.zsh includes yaourt command. it's a third party package for archlinux.

Example

foo.zsh

# Foo: a short description.
# Homepage: http://foo.com

alias foo="ls -l"

Put more introduction documentation into Wiki: Plugins

Clone this wiki locally