티스토리 뷰
1. OS update
2. Home brew 설치
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Home brew 사용법
$ brew [appname] : commend line app
$ brew cask [appname] : GUI app
**cask install
$ brew install cask
$ brew update
$ brew upgrade [appname]
$ brew search [appname]
$ brew cask list
$ brew cask install [appname]
$ brew cask remove [appname]
$ brew cleanup
3. iterm2 설치
4. zsh 설정
$ brew install zsh
# 기본 sh 변경
$ chsh -s $(which zsh)
# oh-my-zsh
$ brew install curl
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
$ echo $0
4. zsh path 설정
$ nano ~/.bash_profile
--nano editor : .bash_profile
alias python='python3'
alias pip='python3 -m pip'
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH
--
zsh 실행 시 .bash_profile 설정 불러오도록 설정
$ nano ~/.bash_profile
--nano editor : .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
source ~/.bash_profile
--
5. sublime text3 설정
python3 설정
Tools > Buid System > New Buid ySystem
아래코드 입력 후 저장 python3
{
"cmd": ["/usr/local/bin/python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf8"}
}
REPL python3 설정
/Users/[YourName]/Library/Application Support/Sublime Text 3/Packages/SublimeREPL/config/Python/MainMain.sublime-menu
파일 내용 수정 : 다음 코드 붙여넣기
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "R",
"id": "SublimeREPL",
"children":
[
{"caption": "Python",
"id": "Python",
"children":[
{"command": "repl_open",
"caption": "Python",
"id": "repl_python",
"mnemonic": "P",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-i", "-u"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{"caption": "Python",
"id": "Python",
"children":[
{"command": "repl_open",
"caption": "Python",
"id": "repl_python",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-i", "-u"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{"command": "python_virtualenv_repl",
"id": "python_virtualenv_repl",
"caption": "Python - virtualenv"},
{"command": "repl_open",
"caption": "Python - PDB current file",
"id": "repl_python_pdb",
"mnemonic": "d",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-i", "-u", "-m", "pdb", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{"command": "repl_open",
"caption": "Python - RUN current file",
"id": "repl_python_run",
"mnemonic": "d",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python3", "-u", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
},
{"command": "repl_open",
"caption": "Python - IPython",
"id": "repl_python_ipython",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"autocomplete_server": true,
"cmd": {
"osx": ["python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
"linux": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
"windows": ["python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"]
},
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {
"PYTHONIOENCODING": "utf-8",
"SUBLIMEREPL_EDITOR": "$editor"
}
}
}
]}
]
}]
}
]
'OS > macOS' 카테고리의 다른 글
(macOS-Big Sur) brew update Error (0) | 2022.02.09 |
---|---|
(macOS) ruby, rbenv, bundler 설치 (0) | 2022.01.24 |
(macOS) MariaDB 설치 및 간단한 사용법 (0) | 2022.01.10 |
(macOS)[python] virtualenv 가상환경 만들기 : pyenv (0) | 2020.02.26 |
(macOS)Sublime Text 3 초기 설정 (0) | 2019.09.18 |
- Total
- Today
- Yesterday
- Regression
- CSV
- Django
- DAQ
- git
- SSH
- vscode
- Raspberry Pi
- r
- raspberrypi
- 라즈베리파이
- 확진
- github
- MacOS
- Pandas
- Model
- 자가격리
- Templates
- 코로나19
- 코로나
- analysis
- arduino
- ERP
- DS18B20
- template
- Python
- server
- pyserial
- COVID-19
- sublime text
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |