From fedd119c39450b40e633dd9b0548075975a45311 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 24 Aug 2021 15:03:13 -0400 Subject: [PATCH] [+] Add git commit alias --- scripts/bashrc | 6 ++++++ 1 file changed, 6 insertions(+) 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$ '