]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "00-newline" plugin
authorAlexander Barton <alex@barton.de>
Fri, 31 Jul 2020 17:17:10 +0000 (19:17 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 31 Jul 2020 17:17:10 +0000 (19:17 +0200)
plugins/00-newline/00-newline.ax-io [new file with mode: 0644]
plugins/00-newline/README.md [new file with mode: 0644]

diff --git a/plugins/00-newline/00-newline.ax-io b/plugins/00-newline/00-newline.ax-io
new file mode 100644 (file)
index 0000000..249057d
--- /dev/null
@@ -0,0 +1,10 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# 00-newline.ax-io: Print an empty line ...
+
+# Don't run this plugin on "check-plugins"!
+[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 0
+
+# Don't output anything ~/.hushlogin exists ...
+[[ -r ~/.hushlogin ]] && return 0
+
+echo
diff --git a/plugins/00-newline/README.md b/plugins/00-newline/README.md
new file mode 100644 (file)
index 0000000..3fd5fa8
--- /dev/null
@@ -0,0 +1,8 @@
+## 00-newline
+
+This is a somewhat "silly" plugin, which is run at the very beginning of the
+initialization sequence and just prints a newline character.
+
+This can be handy when your terminal emulator or "login tools" print some
+messages, but you want the ouput of your plugins and the first shell prompt
+clearly separated.