Ghostty 다운로드
OR
# homebrew 설정을 먼저 할 것!
brew installl ghosttysh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"# homebrew 설정을 먼저 할 것!
brew install zsh-syntax-highlighting
brew install zsh-autosuggestions# ... (중략)
# 기존 ZSH_THEME="robbyrussell" 를 변경
ZSH_THEME="agnoster"
# ... (중략)
# zsh Name Setting
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
fi
}
# zsh Highlighting Setting
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# zsh autosuggestions
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Homebrew PATH
export PATH=/opt/homebrew/bin:$PATH
# NEOVIM
alias vi='nvim'
alias vim='nvim'
alias vimdiff='nvim -d'
export EDITOR='/usr/bin/vim'
# git
alias gpso='git push --set-upstream origin'
# fnm
eval "$(fnm env --use-on-cd)"
# gpg
export GPG_TTY=$(tty)
# fav
source $(which fav.sh)
# python
if which pyenv > /dev/null; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
# VSCode Setting - Command: code .
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"줄바꿈 설정
build_prompt() {
RETVAL=$?
prompt_status
prompt_virtualenv
prompt_context
prompt_dir
prompt_git
prompt_bzr
prompt_hg
prompt_newline # 새로 추가하기
prompt_end
}
# 하단 코드 추가하기
prompt_newline() {
if [[ -n $CURRENT_BG ]]; then
echo -n "%{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR
%{%k%F{blue}%}$SEGMENT_SEPARATOR"
else
echo -n "%{%k%}"
fi
echo -n "%{%f%}"
CURRENT_BG=''
}# Ghostty 사용시 설정 건너 뛰기
# downloads 폴더 위치
# git clone https://github.com/dracula/iterm.gitDracula.itermcolors 파일 클릭 후, iTerm2에서 설정 - Profiles - Colors - Dracula 변경
# brew tap homebrew/cask-fonts
brew install --cask font-jetbrains-mono폰트 설치 완료 후, iTerm2에서 설정 - Profiles - Text - Font - JetBrains Mono 변경
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Warning: /opt/homebrew/bin is not in your PATH 메세지가 나타나는 경우
echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrcbrew install git
brew install gitmoji
brew install npm
brew install fnm
brew install pnpm
brew install gpg
brew install neovim
brew tap johngrib/homebrew-johngrib
brew install fav
brew install fzf
# Docker는 Mac의 경우, 어플리케이션으로 받아야 한다 / 애플실리콘 이슈
# https://www.docker.com/
# 설치 이후 Docker 설정이 필요하다
# ~/.docker/config.json 접속 후 -> The “credsStore” was “desktop” and changed it to “osxkeychain” 변경
# brew install --cask docker
brew install localtunnel
# localtunnel 사용법 예시
# lt --port 3000 --subdomain david
# python
brew install pyenv
# node canvas 설치 방법
# npm install -g node-gyp
# brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
# 이제 필요한 곳에서 하단 canvas를 설치할 수 있다
# npm install canvas# 사용법
# fnm use {버전}brew install neovim상세 설정은 다음과 같다.
# mkdir ~/.config/nvim
# touch ~/.config/nvim/init.vim설정하기
# 설치가 안되었다면 다음과 같이 할 것
brew install pyenv
# 업그레이드
brew upgrade pyenv
# 버전 확인
pyenv --version이후 .zshrc에서 다음과 같이 설정한다.
# python
if which pyenv > /dev/null; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi설치 및 버전 관리하기
# 설치 가능한 버전 확인
pyenv install --list
# 3.10.8 버전 설치
pyenv install 3.10.8
# 3.10.8 버전을 사용한다
pyenv global 3.10.8
# 3.10.8 버전 삭제
pyenv uninstall 3.10.8
# 설치된 버전들 확인
pyenv versionsHammerspoon을 설치한다.
이후 .Hammerspoon 폴더에 다음과 같은 파일을 만든다.
cd .Hammerspoon
vi init.lua
# 직접 설정
mkdir modules
# modules
vi inputsource_aurora.lua
vi foundation_remapping.lua
# 혹은 하단 상세 설정을 참조상세 설정은 다음을 참조한다.
추가로 한영 전환 설정은 다음을 참조한다.
# 선행조건
brew install git
brew install gpg# .gitconfig
# .gitmessage.txt
# --- 제목(title) - 50자 이내로 ---
# <타입(type)> <제목(title)>
# 예시(ex) : Docs(Add) Commit docs Add
# --- 본문(content) - 72자마다 줄바꾸기 ---
# 예시(ex) :
# - Workflow
# 1. 커밋 메시지에 대한 문서 제작 추가.
# 2. commit message docs add.
# --- 꼬리말(footer) ---
# <타입(type)> <이슈 번호(issue number)>
# 예시(ex) : Fix #122
# --- COMMIT END ---
# <타입> 리스트
# init : 초기화
# add : 기능 추가
# update : 기능 보완 (업그레이드)
# fix : 버그 수정
# refactor: 리팩토링
# style : 스타일 (코드 형식, 세미콜론 추가: 비즈니스 로직에 변경 없음)
# docs : 문서 (문서 추가(Add), 수정, 삭제)
# test : 테스트 (테스트 코드 추가, 수정, 삭제: 비즈니스 로직에 변경 없음)
# chore : 기타 변경사항 (빌드 스크립트 수정 등)
# ------------------https://www.44bits.io/ko/post/add-signing-key-to-git-commit-by-gpg