Skip to content

Instantly share code, notes, and snippets.

@Jung0
Last active April 21, 2018 03:28
Show Gist options
  • Save Jung0/91b667f911118ceb4da693ae496ad938 to your computer and use it in GitHub Desktop.
Save Jung0/91b667f911118ceb4da693ae496ad938 to your computer and use it in GitHub Desktop.
シンプルにMacでのプログラミング環境構築考えてみた。 ref: https://qiita.com/Jung0/items/d48c6fa6985b4a007834
/usr/local/bin/zsh
$ chsh -s /usr/local/bin/zsh
$ exec $SHELL
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# peco
function peco-history-selection() {
BUFFER=`history -n 1 | tail -r | awk '!a[$0]++' | peco`
CURSOR=$#BUFFER
zle reset-prompt
}
zle -N peco-history-selection
bindkey '^R' peco-history-selection
$ git clone https://github.com/powerline/fonts.git --depth=1
$ cd fonts
$ ./install.sh
$ cd ..
$ rm -rf fonts
# node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
$ git clone https://github.com/powerline/fonts.git --depth=1
$ cd fonts
$ ./install.sh
$ cd ..
$ rm -rf fonts
# node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
$ git clone https://github.com/creationix/nvm.git .nvm
$ cd .nvm
$ git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
# node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# android
export ANDROID_DIR=$HOME/Library/Android/sdk
export PATH=$PATH:${ANDROID_DIR}
export PATH=$PATH:${ANDROID_DIR}/platform-tools
export PATH=$PATH:${ANDROID_DIR}/tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment