aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-04 15:28:00 +0100
committerBruce Hill <bruce@bruce-hill.com>2019-11-04 15:28:00 +0100
commit43432516292fb183d79b2b3e388eee4770b99eb9 (patch)
tree57c965949c797c73266e8d7edd344ed6642c49c7 /bb.h
parent1f4122d8d5a7a08029329e80143cb06a16298881 (diff)
Removed `spin` because the "eval" part of it was broken and it adds
unnecessary complexity.
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/bb.h b/bb.h
index 0839066..34da658 100644
--- a/bb.h
+++ b/bb.h
@@ -25,7 +25,7 @@
#include "bterm.h"
// Macros:
-#define BB_VERSION "0.18.0"
+#define BB_VERSION "0.19.0"
#ifndef PATH_MAX
#define PATH_MAX 4096
@@ -308,22 +308,6 @@ PICK ";\n"
" grep -i -m1 \"$(echo \"$query\" | sed 's;.;[^/&]*[&];g')\";\n"
#endif
"}\n"
-"spin() {\n"
-#ifdef SPIN
-SPIN ";\n"
-#else
-" eval \"$@\" &\n"
-" pid=$!;\n"
-" spinner='-\\|/';\n"
-" sleep 0.01;\n"
-" while kill -0 $pid 2>/dev/null; do\n"
-" printf '%c\\033[D' \"$spinner\" >/dev/tty;\n"
-" spinner=\"$(echo $spinner | sed 's/\\(.\\)\\(.*\\)/\\2\\1/')\";\n"
-" sleep 0.1;\n"
-" done;\n"
-" wait $pid;\n"
-#endif
-"}\n"
#ifdef SH
"alias sh=" SH";\n"
#else