diff --git a/scripts/bashrc b/scripts/bashrc index 40bf094..4a45bf1 100644 --- a/scripts/bashrc +++ b/scripts/bashrc @@ -32,6 +32,12 @@ lisp() { ros run --load $1 --quit } +# Git commit wrapper +commit() { + git commit -m "$1" +} +alias commit-all='git add .; commit' + # 关于PS1 (指令提示格式) # 这个版本向上番两次就会出问题 # PS1='\n\e[m[\e[35m\D{%y-%m-%d} \t\e[m] [\e[34m\h\e[m] [\e[33m\u\e[m] \e[37m\w \n\e[m$ '