简介
查看
设置
第一步:
通过vim ~/.bashrc编辑.bashrc文件
如:
alias c='clear'alias yd='yarn dev'alias ydt='yarn deploy:test'alias push='git push origin HEAD:refs/for/main'
第二步:
通过vim ~/.bash_profile编辑.bash_profile文件
添加下面代码,保证每次打开终端时,都会执行~/.bashrc文件,这样不用每次打开终端都需要source一下.bashrc文件的问题
if [ -f ~/.bashrc ] ; thensource ~/.bashrcfi
