參考文章: http://coder.aqualuna.me/2012/03/bashrc-in-mac-ter...
以 ll 為例
方法1: (暫時設定,每次重開機都要再設定一次)
# alias alias ll='ls -l'
方法2: (永久設定)
1. # vim ~/.bashrc
alias ll='ls -l'
2. # vim ~/.bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
全站熱搜
留言列表