From 8127bf73501c335519dae40101c3b850c4a64e54 Mon Sep 17 00:00:00 2001 From: James Pannacciulli Date: Sun, 11 Jun 2017 11:06:44 -0700 Subject: ariketa first commit ariketa: bash example code quickloader for presentations --- lib/prompt.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 lib/prompt.sh (limited to 'lib/prompt.sh') diff --git a/lib/prompt.sh b/lib/prompt.sh new file mode 100644 index 0000000..7c0fe43 --- /dev/null +++ b/lib/prompt.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +[[ $(declare -p PS1) == *\\\$\?* ]] || PS1=' [$?] '"$PS1" +_old_PS2="$PS2" +PS2='## example $((_I+1)) / ${#_examples[@]} $(_tag.display)\n\n' -- cgit v1.2.3