From e1c0863f60e53ce68a37b772e272f84b7f24d651 Mon Sep 17 00:00:00 2001 From: Yann Esposito Date: Tue, 10 Jul 2012 16:39:13 +0200 Subject: [PATCH] Added an even easier install method --- README.md | 9 +++++++++ install.sh | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 install.sh 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"