- 在 home 目录下新建 .alias 文件,添加 alias
# alias for lxgui
# linux
alias les='less -s'
alias e="emacs"
alias zshconfig="emacs ~/.zshrc"
alias vzshconfig="vim ~/.zshrc"
# conda
alias cup="conda activate"
alias cdown="conda deactivate"
alias cenv="conda env list"
# vscode
alias code="code-insiders"
# node
alias ns="nest start -w"
alias ys="yarn serve"
- 在 .bashrc (.zshrc) 中添加
# aliases (初始化 path 同理)
if [ -f ~/.alias ]; then
source ~/.alias
fi