setup terminal - deptno/deptno.github.io GitHub Wiki
setup terminal
brew
์ ํ์ค๋ฆฌ์ฝ(M1) ํ๋ก์ธ์๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ์๋
brew
๋์arch -arm64 brew
๋ฅผ ์ฌ์ฉํ๋ค.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile\
eval "$(/opt/homebrew/bin/brew shellenv)"
brew install neovim
brew install hstr
brew install alacritty
brew install tmux
brew install bottom
brew install exa
brew install fzf
brew install gpg
brew install task
brew install universal-ctags
brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
brew install --cask google-chrome
brew install --cask finicky
brew install --cask webstorm
brew install --cask android-studio
brew install --cask notion
brew install --cask blender
python3
python3 -m pip install --upgrade pip
tmux
git clone --depth=1 https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fork ๊ฐ ์กด์ฌํ๋๋ฐ .gitconfig ์ค์ ์์ ์ด์๋ก ssh ์ ์ ์ด ๋จผ์ ์ด๋ฃจ์ด์ ธ์ผํจ
ohmyzsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k\
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
xcode
xcode-select --install
rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
.dotfiles
git init
git remote add origin https://github.com/deptno/.config.git
get fetch origin
git switch master
git branch --set-upstream-to=origin/master master
git submodule update
git submodule foreach git switch master
ssh
ssh@github
generate
ssh-keygen -t ed25519 -C "[email protected]"
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
pbcopy < ~/.ssh/id_ed25519.pub # github ๋ฑ๋ก
copy from remote ssh
scp USER@HOST:/path/to/remote/pub.key ~/.ssh/
ssh@alias
$ vim ~/.ssh/config
host ALIAS
hostname HOSTNAME_OR_IP
ssh-copy-id
ssh@publickey
ssh-copy-id -i ~/.ssh/id_ed25519.pub HOSTNAME
gpg
password ๋ฑ๋ก์์๋
GPG_TTY=$(tty)
๊ฐ ํ์, ์ธ์๋ tmux ์ ๋ค์ ์ถฉ๋์ด ์์ด์ ์ฌ์ฉํ์ง ์๊ธฐ๋ก ํจ
gpg --full-generate-key # RSA(0)
gpg --list-secret-keys
gpg --armor --export IDIDIDIDIDIDIDIDIDIDIDIDIDIDIDIDIDIDIDID | pbcopy # github ๋ฑ๋ก
vim
plugin@builtin package manager
neovim
mkdir -p .local/share/nvim/site/pack/_undefined/start # neovim
git clone -b dev --single-branch [email protected]:vimwiki/vimwiki
git clone --single-branch [email protected]:mhinz/vim-startify
git clone --single-branch [email protected]:preservim/tagbar
git clone --single-branch [email protected]:neovim/nvim-lspconfig
git clone --single-branch [email protected]:rust-lang/rust.vim
git clone --single-branch [email protected]:simrat39/rust-tools.nvim
git clone --single-branch [email protected]:hrsh7th/nvim-cmp
git clone --single-branch [email protected]:dracula/vim
git clone --single-branch [email protected]:tpope/vim-fugitive
git clone --single-branch [email protected]:tpope/vim-rhubarb
git clone --single-branch [email protected]:tpope/vim-surround
git clone -b main --single-branch [email protected]:glepnir/galaxyline.nvim
git clone --single-branch [email protected]:yamatsum/nvim-nonicons
git clone --single-branch [email protected]:kyazdani42/nvim-web-devicons
vim8
mkdir -p .vim/pack/_undefined/start
cd .vim/pack/_undefined/start
zshrc ์์
mkdir -p /usr/local/bin
export PATH=$HOME/bin:/usr/local/bin:$PATH
๋ช ๋ น์ด๋ฅผ ๋ฎ์ด์ฐ๊ธฐ ์ํด์ ํ์ํ ๋๋ ํ ๋ฆฌ๋ฅผ ์์ฑํ ํ path๋ฅผ ์ถ๊ฐํ๋ค.
ln -s nvim bin/vi
ln -s nvim bin/vim
path ๋ฅผ ๋จผ์ ๋ ์ผ๋ก์จ [vi]], [[vim]] ๋ฑ์ [neovim ๋ก ๋์ฒดํ์ฌ ์ฌ์ฉํ๋ค. path ๋ฑ์์ ์ฌ์ฉํ๋ editor ์ค์ ์ alias ๋ก๋ ์๋ํ์ง ์๊ธฐ ๋๋ฌธ.
wiki
git clone [email protected]:deptno/deptno.github.io.wiki
git clone [email protected]:deptno/wiki # private
ruby
์์คํ ๋ฃจ๋น(2.6.8 ๋ก๊ฐ์ )๋ฅผ ๊ทธ๋๋ก ์ฌ์ฉํ๊ณ env ๋ง ์์ ํ๋ค.
chruby ๋ฅผ ์ฌ์ฉํ๊ณ ์์ง ์์ ๊ฒฝ์ฐ ๋๋ ํ ๋ฆฌ ์์ฑ์ด ํ์ํ ์ ์๋ค.
mkdir -p ~/.gem/ruby/2.6.8
echo "export GEM_HOME=~/.gem/ruby/2.6.8" >> ~/.zshrc
source ~/.zshrc
react-native ํ๋ก์ ํธ๋ฅผ ์งํํ๋ ๊ฒฝ์ฐ๋ ์๋์ ๊ฐ์ ์ปค๋งจ๋๋ก ์ด์ด์ง๋ค.
gem install bundler
bundle install
bundle exe pod install