Added an even easier install method

This commit is contained in:
Yann Esposito 2012-07-10 16:39:13 +02:00
parent 03fef2e24c
commit e1c0863f60
2 changed files with 20 additions and 0 deletions

View file

@ -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

11
install.sh Normal file
View file

@ -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"