Made installer a bit better

This commit is contained in:
Yann Esposito 2012-07-10 16:48:04 +02:00
parent e1c0863f60
commit e82267f252

8
install.sh Normal file → Executable file
View file

@ -1,11 +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
cd $HOME/.zsh && \
git clone https://github.com/yogsototh/zsh_functional.git $HOME/.zsh/functional && \
{
print -- "\n# ZSH Higher Order Functions"
echo '. $HOME/.zsh/functional/load'
} >> ~/.zshrc
. $HOME/.zsh/functional/load
} >> ~/.zshrc && \
. $HOME/.zsh/functional/load && \
print -- "\n\nCongratulation: ZSH Higer Order Functions Installed"