]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/motd.zsh
zsh: motd: git --fixup and --autosquash
[dotfiles.git] / zsh / lib / motd.zsh
diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh
new file mode 100644 (file)
index 0000000..43e8152
--- /dev/null
@@ -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"