mac os 给终端命令写alias

1)先得知加载顺序如下:优先级越大的越高,不一定全有哦。比如我就只有125,我是修改的5

优先级 配置 说明
1 /etc/profile 系统级别——不推荐修改
2 /etc/paths 系统级别——不推荐修改
3 ~/.profile 用户设置
4 ~/.bash_login 用户设置
5 ~/.bash_profile 用户设置
6 ~/.bashrc 用户设置(优先级最高,在打开 bash shell 时加载的)

  

2)修改

vim ~/.bash_profile

alias ll='ls -lh'

3)打完收工~

猜你喜欢

转载自www.cnblogs.com/sweetXiaoma/p/9303512.html
今日推荐