Libon

.zshrc config file

#shell
macOS zsh shell 配置项和 command alias

ToC

在终端中运行

code ~/.zshrc

可以使用 VS Code 来打开这个配置文件

# System
alias ll='ls -g'
alias cls='clear'
alias rmf='rm -rf '

# Node
alias i='pnpm i '
alias x='pnpx '
alias r='pnpm run '
alias d='pnpm run dev'
alias s='pnpm run serve'
alias b='pnpm run build'
alias ss='pnpm run start'
alias ci='code . && pnpm i'
alias un='nun '
alias id='ni -D '
alias ci='code ./ && pnpm i'
alias deps='pnpx taze minor -w'
alias xni='npx --no-install '

# Git
alias pull='git pull '
alias push='git push '
alias clone='git clone '
alias commit='git add . && git commit -m '
alias branch='git branch -a'
alias checkout='git checkout -b '
alias undo="git reset --soft HEAD^"

# SSH
alias sshgen='ssh-keygen -t ed25519 -C '
alias sshkey='cat ~/.ssh/id_ed25519.pub'

export PNPM_HOME="/Users/admin/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"

CD ..
回顾上一篇
表格响应式布局
接下来阅读
CSS 网格背景