Last active
October 27, 2015 08:27
-
-
Save mijabi/678f21f204ee838cdc93 to your computer and use it in GitHub Desktop.
Making a dev environment with brand-new OSX(Yosemite). 23rd Oct '15 ref: http://qiita.com/mijabi/items/ae503b9f7562ebb80e44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# enable ATOM Shell Command | |
$ apm config set https-proxy http://example.com:8080/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: /etc/hosts | |
# add below | |
$yourHost$ git.hoge.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: /Applications/XAMPP/xamppfiles/etc/httpd.conf | |
# Virtual hosts | |
# Include etc/extra/httpd-vhosts.conf | |
↓ | |
# Virtual hosts | |
Include etc/extra/httpd-vhosts.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf | |
# add below (enable SSI) | |
<VirtualHost *:80> | |
DocumentRoot "/Users/$yourUserName$/git" | |
DirectoryIndex index.php index.html | |
ServerName git.hoge.com | |
ErrorLog "/Applications/XAMPP/htdocs/error.log" | |
<Directory "/Users/$yourUserName$/git"> | |
Options +Includes | |
AddOutputFilter INCLUDES .html | |
AddType text/html .shtml | |
Order deny,allow | |
Allow from ALL | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% npm install -g grunt-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% npm install --global gulp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export http_proxy=http://example.com:8080/ | |
$ export https_proxy=$http_proxy | |
$ export all_proxy=$http_proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ defaults write com.apple.finder AppleShowAllFiles TRUE | |
$ killall Finder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git config --global http.proxy http://example.com:8080/ | |
$ git config --global https.proxy http://example.com:8080/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
$ cp ~/.zshrc ~/.zshrc.orig | |
$ cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc | |
$ zsh | |
# If you install manually, you have to update manually via code below | |
$ upgrade_oh_my_zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: ~/.zshrc | |
# plugins=(git) | |
plugins=(git sublime sudo web-search) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: ~/.zshrc | |
# ZSH_THEME="robbyrussell" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chsh -s /bin/zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment