Scalaローカル開発環境構築
2018-10-14 (Sun) · 171 words

前提

Homebrew Install

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
Your system is ready to brew.

Java8 Install

$ brew tap caskroom/versions
$ brew cask install java8
$ java -version

sbt Install

$ brew install sbt

Git Install

$ brew install git
$ mkdir ~/repository
$ mkdir ~/repository/office
$ mkdir ~/repository/pureone
$ vi ~/repository/office/.gitconfig
[user]
  name = j-tsuchiya-is
  email = j_tsuchiya@interspace.ne.jp
$ vi ~/repository/pureone/.gitconfig
[user]
  name = pureone-t
  email = pureone.ttt@gmail.com
$ vi ~/.gitconfig
[includeIf "gitdir:~/repository/office/"]
  path = ~/repository/office/.gitconfig
[includeIf "gitdir:~/repository/pureone/"]
  path = ~/repository/pureone/.gitconfig

bashrc bash_profile Create

$ vi ~/.bash_profile
# PATH
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi
$ vi ~/.bashrc
# Alias Setting
alias ls='ls -FG'
alias ll='ls -alFG'

# Permmision View Setting
if [ $UID -eq 0 ]; then
   PS1="\[\033[31m\]\u@\h\[\033[00m\]:\[\033[01m\]\w\[\033[00m\]\\$ "
else
   PS1="\[\033[36m\]\u@\h\[\033[00m\]:\[\033[01m\]\w\[\033[00m\]\\$ "
fi

#for bash_completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
 source $(brew --prefix)/etc/bash_completion
fi

# git ps1
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[37m\][\[\033[36m\]\u\[\033[37m\]@\h \[\033[32m\]\W\[\033[37m\]]\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
$ source .bashrc

プロジェクトの雛形を作成

https://www.scala-sbt.org/1.0/docs/sbt-new-and-Templates.html

IDE import


Top     back     Posts     Tags     About Me