티스토리 뷰

개발

초기설정

Lovizu 2020. 12. 7. 22:54

.zshrc

# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="$PATH:`pwd`/flutter/bin"

# Path to your oh-my-zsh installation.
export ZSH="/Users/lovizu/.oh-my-zsh"
export NVM_DIR="$HOME/.nvm"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/"
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:/usr/local/go/bin

#ZSH_THEME="agnoster"
#ZSH_THEME="spaceship"
autoload -U promptinit; promptinit
prompt pure

# Source Files
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source "$HOME/.sdkman/bin/sdkman-init.sh"

# Would you like to use another custom folder than $ZSH/custom?
ZSH_CUSTOM=$ZSH/custom

plugins=(
	git
	zsh-syntax-highlighting
	yarn-autocompletions
	docker
#	fzf
#	fasd
	laravel
	golang
)

source $ZSH/oh-my-zsh.sh

# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
  export EDITOR='vim'
else
  export EDITOR='mvim'
fi

# USER-NAME setting
prompt_context() {
  if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
    prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
  fi
}

[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion"  # This loads nvm bash_completion


alias dc="docker-compose"
alias python="python3"
alias mk="mkdir"
alias scz="source ~/.zshrc"
alias rn="npx react-native"
alias cra="npx create-react-app"
alias rename="npx react-native-rename"
alias spro="cd ~/project/studiomate"
alias art="php artisan"
alias service="brew services"
alias gcq="git checkout qa"
alias gcm="git checkout master"
alias gcs="git checkout staging"
alias rn-ios="rn run-ios --device 'iPhone' --configuration Release"

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
alias j14="export JAVA_HOME=`/usr/libexec/java_home -v 14`; java -version"

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/Users/lovizu/.sdkman"
[[ -s "/Users/lovizu/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/lovizu/.sdkman/bin/sdkman-init.sh"
export PATH="/usr/local/sbin:$PATH"

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/lovizu/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/lovizu/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/lovizu/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/lovizu/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

 

 

.vimrc

" 검색어 하이라이트
set hlsearch
 
" 검색시 대소문자 구분
set smartcase
 
" 현재 커서 위치 표시
set ruler
 
" 자동으로 들여쓰기
set autoindent
set cindent
 
" 왼쪽에 몇번째 줄인지 출력
set nu
 
" Tab 너비 값
set ts=2
" 자동으로 들여쓰기할 너비 값
set shiftwidth=2
 
" 접근했을때 마지막으로 수정한 곳에서 커서를 위치합니다.
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
 
" 신텍스 켬
syntax on

 

brew php switcher

github.com/philcook/brew-php-switcher

'개발' 카테고리의 다른 글

The Tweleve Factor APP ( 12 Factor )  (0) 2021.03.19
nGrinder 란 무엇인가 ? (사용 후기)  (0) 2020.12.29
코딩, 어떤 언어로 시작하지?  (0) 2020.11.09
MBTI 를 검사를 해보다  (0) 2020.06.28
최신맥에서 PHP 7.1 설치하기  (0) 2020.03.16
댓글


최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday