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 #!/usr/bin/env zsh
[[ ! -d $HOME/.zsh ]] && mkdir $HOME/.zsh [[ ! -d $HOME/.zsh ]] && mkdir $HOME/.zsh
cd $HOME/.zsh cd $HOME/.zsh && \
git clone https://github.com:yogsototh/zsh_functional.git functional git clone https://github.com/yogsototh/zsh_functional.git $HOME/.zsh/functional && \
{ {
print -- "\n# ZSH Higher Order Functions" print -- "\n# ZSH Higher Order Functions"
echo '. $HOME/.zsh/functional/load' echo '. $HOME/.zsh/functional/load'
} >> ~/.zshrc } >> ~/.zshrc && \
. $HOME/.zsh/functional/load . $HOME/.zsh/functional/load && \
print -- "\n\nCongratulation: ZSH Higer Order Functions Installed" print -- "\n\nCongratulation: ZSH Higer Order Functions Installed"