# rc 表示 run command (运行命令) # for zsh $ vi ~/.zshrc # for bash $ vi ~/.bashrc alias gs="git status" alias gc="git commit -m " alias gaa="git add ." alias gp="git push" alias gl="git log --graph" alias gll="git log --graph --abbrev-commit --decorate --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)'" # 应用 source ./.bashrc