快速配置一台全新的Unix系统电脑来工作

May 29, 2024

git, zsh, onmyzsh, pnpm, node

############ git
sudo apt install git
git config --global user.name Ryan-yang125
git config --global user.email ruiyang0012@gmail.com
git config --global core.editor vim
# ssh

############ git
ssh-keygen -t ed25519 -C ruiyang0012@gmail.com
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
# then copy and paste to github/account/setting

############ zsh
sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
nano ~/.bashrc # add this
if test -t 1; then
    exec zsh
fi

cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
nano ~/.zshrc # add this
plugins=(
    # other plugins...
    zsh-autosuggestions
)
############ zsh

############## pnpm and node
curl -fsSL https://get.pnpm.io/install.sh | sh -
pnpm env use --global 18
############## pnpm and node

Vscode 字体

"editor.fontFamily": "Cascadia Code",
"editor.fontLigatures": true,
"terminal.integrated.fontFamily": "Cascadia Code",

# donwload
https://github.com/microsoft/cascadia-code/releases/tag/v2111.01
ttf regular