Mind stick…

Чтобы не забыть:

#!/bin/bash

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install mc vim nginx mysql subversion git mercurial ant redis mongodb
brew tap homebrew/php
brew tap homebrew/dupes
brew install --without-apache --with-fpm --with-mysql php55 php55-mongo php55-redis

curl -sS https://getcomposer.org/installer | php
mv ./composer.phar /usr/local/bin/composer

ln -sfv /usr/local/opt/php55/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

echo 'export PATH=/usr/local/bin:/usr/local/sbin:$PATH' >> ~/.bash_profile
echo 'export LC_ALL=ru_RU.UTF-8' >> ~/.bash_profile
echo 'export LANG=ru_RU.UTF-8' >> ~/.bash_profile
echo 'source ~/.bash_aliases' >> ~/.bash_profile

echo 'alias ll='\''ls -la\' >> ~/.bash_aliases

echo 'alias mysql.start='\''launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist'\' >> ~/.bash_aliases
echo 'alias mysql.stop='\''launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist'\' >> ~/.bash_aliases
echo 'alias mysql.restart='\''mysql.stop && mysql.start'\' >> ~/.bash_aliases

echo 'alias nginx.start='\''launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist'\' >> ~/.bash_aliases
echo 'alias nginx.stop='\''launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist'\' >> ~/.bash_aliases
echo 'alias nginx.restart='\''nginx.stop && nginx.start'\' >> ~/.bash_aliases

echo 'alias php-fpm.start='\''launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php55.plist'\' >> ~/.bash_aliases
echo 'alias php-fpm.stop='\''launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php55.plist'\' >> ~/.bash_aliases
echo 'alias php-fpm.restart='\''php-fpm.stop && php-fpm.start'\' >> ~/.bash_aliases

echo 'alias mongo.start='\''launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongo.plist'\' >> ~/.bash_aliases
echo 'alias mongo.stop='\''launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongo.plist'\' >> ~/.bash_aliases
echo 'alias mongo.restart='\''mongo.stop && mongo.start'\' >> ~/.bash_aliases

echo 'alias redis.start='\''launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist'\' >> ~/.bash_aliases
echo 'alias redis.stop='\''launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist'\' >> ~/.bash_aliases
echo 'alias redis.restart='\''redis.stop && redis.start'\' >> ~/.bash_aliases
Запись опубликована в рубрике Новости. Добавьте в закладки постоянную ссылку.