Added an even easier install method
This commit is contained in:
parent
03fef2e24c
commit
e1c0863f60
2 changed files with 20 additions and 0 deletions
|
@ -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
11
install.sh
Normal 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"
|
Loading…
Reference in a new issue