From 87344398c36a27cb96855de43b05fcc3702630d5 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Mon, 15 Jun 2015 23:59:54 +0100 Subject: [PATCH] zsh: motd: git --fixup and --autosquash --- zsh/lib/motd.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 zsh/lib/motd.zsh diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh new file mode 100644 index 0000000..43e8152 --- /dev/null +++ b/zsh/lib/motd.zsh @@ -0,0 +1,9 @@ +autoload colors; colors; + +msg() +{ + print "$fg_bold[white]$1$reset_color\n$2\n" +} + +msg "gc --{fixup,squash} :/commitmsg " "auto constructs a '{fixup,squash}!' commit message for the last commit matching 'commitmsg'" +msg "git rebase --autosquash " "{fixup,squash} commits starting with {fixup,squash}!, must be --interactive" -- 2.48.1