Skip to content

mijabi/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

dotfiles

Create an dev environment with pale OSX. 23rd Oct '15

Sublime Text

When you are on proxy probrem
  • You'd better to install manualy
  • Edit http_proxy & https_proxy on "Preferences" -> "Package Settings" -> "Package Control" -> "Settings Default"

ATOM

  • Install ATOM
  • Install shell-commands via "Atom" -> "Install Shell Commands"
  • You should be restart your mac
# enable ATOM Shell Command
$ apm config set https-proxy http://example.com:8080/

iTerm

Homebrew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you have proxy probrem
$ export http_proxy=http://example.com:8080/
$ export https_proxy=$http_proxy
$ export all_proxy=$http_proxy

proxy path witten on a .pac file

You may be need curl proxy setting
$ vi ~/.curlrc
$ proxy = "http://example.com:8080/"

Git

  • install Git
$ brew install git

Show invisible files

$ defaults write com.apple.finder AppleShowAllFiles TRUE
$ killall Finder

If you've got proxy probrem, add git global setting for them. It enables a "git push"

$ git config --global http.proxy http://example.com:8080/
$ git config --global https.proxy http://example.com:8080/

Node

oh-my-zsh

Install manually if you need
$ 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
Select and edit plugins of Oh My ZSH
: ~/.zshrc

# plugins=(git)
plugins=(git sublime sudo web-search)

sublime / sudo / web-search

All plugins are placed on ~./oh-my-zsh/plugins

Chagne theme if you want
: ~/.zshrc

# ZSH_THEME="robbyrussell"
Change your default shell, if you want
$ chsh -s /bin/zsh

XAMPP

Show files located on "/User/git/" as "http://git.hoge.com/"
: /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>

if you load json asynchronousely, do not forget set MIME-Type for json

/etc/mime.types
application/json json


Compass

% gem install compass --http-proxy http.proxy http://example.com:8080/

or

% gem install compass -p http://example.com:8080/

Grunt

% npm install -g grunt-cli

Gulp

% npm install --global gulp

Memo

Ruby

Some of your Yosmeite may accepts only specific version like, 2.0.0-p451.

Vim

vimdiff

% git config --global diff.tool vimdiff
% git config --global difftool.prompt false

Releases

No releases published

Packages

No packages published