Skip to content

Instantly share code, notes, and snippets.

@mijabi
Last active October 27, 2015 08:27
Show Gist options
  • Save mijabi/678f21f204ee838cdc93 to your computer and use it in GitHub Desktop.
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
# enable ATOM Shell Command
$ apm config set https-proxy http://example.com:8080/
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
: /etc/hosts
# add below
$yourHost$ git.hoge.com
: /Applications/XAMPP/xamppfiles/etc/httpd.conf
# Virtual hosts
# Include etc/extra/httpd-vhosts.conf
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
: /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>
% npm install -g grunt-cli
% npm install --global gulp
$ export http_proxy=http://example.com:8080/
$ export https_proxy=$http_proxy
$ export all_proxy=$http_proxy
$ brew install git
$ defaults write com.apple.finder AppleShowAllFiles TRUE
$ killall Finder
$ git config --global http.proxy http://example.com:8080/
$ git config --global https.proxy http://example.com:8080/
$ 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
: ~/.zshrc
# plugins=(git)
plugins=(git sublime sudo web-search)
: ~/.zshrc
# ZSH_THEME="robbyrussell"
$ chsh -s /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment