用alias给Mac OS 添加 ll命令
用法:
alias 命令别名=“命令行”
示例:
alias ll=“ls -l”
列出所有别名:
alias 或者 alias -p
应用到所有用户
在/etc/profile中添加alias命令
cat /etc/profile
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
alias ll='ls -l'
alias la='ls -a'
alias grep='grep --color'
alias find='find --color
使配置文件生效:
source /etc/profile