Add dev/zsh

This commit is contained in:
Henrik Lissner 2017-12-06 14:14:20 -05:00
parent bc56cb61d7
commit f69a3bbee2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

22
dev/zsh/_init Executable file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env zsh
source ${0:A:h}/../../deploy
install() {
# Install revolver
curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver >$XDG_BIN_HOME/revolver
# Install ZUnit into $path
curl -L https://github.com/zunit-zsh/zunit/releases/download/v0.8.1/zunit >$XDG_BIN_HOME/zunit
# Optional, install ZUnit ZSH completion into $fpath
curl -L https://github.com/zunit-zsh/zunit/releases/download/v0.8.1/zunit.zsh-completion >$ZDOTDIR/functions/_zunit
}
# update() {}
# link() {}
clean() {
rm -fv $XDG_BIN_HOME/{zunit,revolver}
rm -fv $ZDOTDIR/functions/_zunit
}
init "$@"