From: Samir Benmendil Date: Mon, 15 Jun 2015 22:59:54 +0000 (+0100) Subject: zsh: motd: git --fixup and --autosquash X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/87344398c36a27cb96855de43b05fcc3702630d5 zsh: motd: git --fixup and --autosquash --- 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"