diff --git a/README.md b/README.md index 1c2d717..2174148 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,21 @@ You can look at [yogsototh's blogpost] for the idea of higher order functions in zsh. +## Install + +If you are lazy just copy paste the following line in your terminal: + + cd /tmp && \ + curl -O https://raw.github.com/yogsototh/zsh_functional/master/install.sh && \ + chmod u+x install.sh && . ./install.sh + To install, clone this repo to `~/.zsh/functional` and add . ~/.zsh/functional/load to your `.zshrc` + ## Usage and documentation Please refer to the tests so far until I've written simple proper docs for each diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..838b691 --- /dev/null +++ b/install.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env zsh + +[[ ! -d $HOME/.zsh ]] && mkdir $HOME/.zsh +cd $HOME/.zsh +git clone https://github.com:yogsototh/zsh_functional.git functional +{ + print -- "\n# ZSH Higher Order Functions" + echo '. $HOME/.zsh/functional/load' +} >> ~/.zshrc +. $HOME/.zsh/functional/load +print -- "\n\nCongratulation: ZSH Higer Order Functions Installed"