命令行设置快捷命令

1. 打开cmd

2. 创建 .bash_profile文件

touch .bash_profile

3. 打开.bash_profile文件

open .bash_profile

4. 写入快捷命令

alias cyb='cd /Users/project/YueBei'

以上命令表示,在cmd模式下输入cyb命令,将会打开/Users/project/YueBei

 

posted @ 2019-12-07 14:26  Ayinger  阅读(598)  评论(0编辑  收藏  举报