Libon

.zshrc config file

0Mins #shell
macOS zsh shell 配置项和 command alias

在终端中运行

Terminal window
1
code ~/.zshrc

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

~/.zshrc
1
# System
2
alias ll='ls -g'
3
alias cls='clear'
4
alias rmf='rm -rf '
5
6
# Node
7
alias i='pnpm i '
8
alias x='pnpx '
9
alias r='pnpm run '
10
alias d='pnpm run dev'
25 collapsed lines
11
alias s='pnpm run serve'
12
alias b='pnpm run build'
13
alias ss='pnpm run start'
14
alias ci='code . && pnpm i'
15
alias un='nun '
16
alias id='ni -D '
17
alias ci='code ./ && pnpm i'
18
alias deps='pnpx taze minor -w'
19
alias xni='npx --no-install '
20
21
# Git
22
alias pull='git pull '
23
alias push='git push '
24
alias clone='git clone '
25
alias commit='git add . && git commit -m '
26
alias branch='git branch -a'
27
alias checkout='git checkout -b '
28
alias undo="git reset --soft HEAD^"
29
30
# SSH
31
alias sshgen='ssh-keygen -t ed25519 -C '
32
alias sshkey='cat ~/.ssh/id_ed25519.pub'
33
34
export PNPM_HOME="/Users/admin/Library/pnpm"
35
export PATH="$PNPM_HOME:$PATH"

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