给当前目录添加快捷方式

echo "alias ${name}=\"cd `pwd`\"" >> ~/.bashrc; source ~/.bashrc

给当前目录添加快捷方式,对于目录中存在空格的会出问题,需要另外处理。

posted @ 2019-05-23 10:49  luoheng  阅读(482)  评论(0编辑  收藏  举报