Published on

PC 세팅

Authors
  • avatar
    Name
    Inhwan Cho
    Twitter

VScode 설정

  • command + ,누르면 Setting으로 들어갈 수 있음
  • 제 세팅은 아래와 같습니다.
{
    "git.autofetch": true, //깃허브 자동
    "workbench.colorTheme": "One Dark Pro Mix", //화면 컬러
    "workbench.iconTheme": "ayu", //탐색기 아이콘
    "workbench.settings.editor": "json", //설정을 json으로 바꾸는 기능(현재)
    "workbench.settings.openDefaultSettings": true,
    "workbench.settings.useSplitJSON": true,
    "editor.fontSize": 13,
    "editor.fontWeight": "normal",
    "debug.console.fontSize": 13,
    "terminal.integrated.fontSize": 13,
    "markdown.preview.fontSize": 13,
    "editor.codeActionsOnSave": {
        "source.fixAll.markdownlint": true
    }
    "editor.minimap.enabled": false, //VScode 오른쪽 위편에 맵처럼 보이는 미니맵 제거
    "terminal.integrated.fontFamily": "'SourceCodePro+Powerline+Awesome Regular'", //터미널 폰트에 \'사용해줘야 적용됨
    "terminal.external.osxExec": "iTerm.app", //터미널 -> iTerm
    "terminal.explorerKind": "external", //internal이 아니라 외부(iTerm)
    "terminal.integrated.shell.osx": // '/bin/zsh', #zsh라고 해도됨
}

Colab 설정

  • High Contrast Dark가 가장 보기 편한거 같습니다.
{
    '테마' : 'Dark',
    '편집기 색상' : 'High Contrast Dark',
    '편집기 키바인딩' : 'default',
    '글꼴 크기' : 14,
    '코드 랜더링' : 'monospace',
    '세로 눈금자 열' : 80,
    '코드 자동완성' : false,
    '행번호 표시' : true,
    '들여쓰기 가이드' : true,
    '코드셀 자동으로 괄호 닫기' : true,
    'enter로 제안 수락' : true,
}

zshrc

  • 기록(백업용)
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"

plugins=(
  git
  zsh-autosuggestions
  )

source $ZSH/oh-my-zsh.sh

[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

[[ -d ~/.rbenv  ]] && \
  export PATH=${HOME}/.rbenv/bin:${PATH} && \
  eval "$(rbenv init -)"

# Install Ruby Gems to ~/gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}


export PATH="/opt/anaconda3/bin:PATH"

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

export CONDA_AUTO_ACTIVATE_BASE=false