Mac/Linux下配置alias

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011517841/article/details/82978656

1. 编辑文件~/.bash_profile

 vim ~/.bash_profile (如若没有则新建)

添加

if [ -f ~/.bashrc ]; then
source ~/.bashrc

2. 编辑文件~/.bash_profile 添加alias

alias loginbeta='ssh  user@host'

猜你喜欢

转载自blog.csdn.net/u011517841/article/details/82978656