aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-11 12:29:40 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-11-11 12:29:40 -0800
commitb7ad0e93a243da19e39fc750054afcfa3c6bb9b0 (patch)
tree33295fb95c09d02e9d3afed9e68ef28c3a415107 /bb.h
parentaf3f6421500dfeb58b8ac251edf639552e48b762 (diff)
Refactored `bb +...` to `bbcmd ...` within bb bindings. This makes
things a lot less ambiguous. Also removed the default marks created in bbstartup.sh and ensured that `$XDG_DATA_HOME` and `$XDG_CONFIG_HOME` always get set as environment variables.
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bb.h b/bb.h
index e383b75..f3e3a29 100644
--- a/bb.h
+++ b/bb.h
@@ -25,7 +25,7 @@
#include "bterm.h"
// Macros:
-#define BB_VERSION "0.19.2"
+#define BB_VERSION "0.20.0"
#ifndef PATH_MAX
#define PATH_MAX 4096
@@ -254,11 +254,11 @@ static const char *description_str = "bb - an itty bitty console TUI file browse
static const char *usage_str = "Usage: bb (-h/--help | -v/--version | -s | -d | -0 | +command | path)*\n";
// Shell functions
-static const char *bbcmdfn = "bb() {\n"
+static const char *bbcmdfn = "bbcmd() {\n"
" if test $# -eq 0; then cat >> $BBCMD; return; fi\n"
" for arg; do\n"
" shift;\n"
-" if expr \"$arg\" : \"^+[^:]*:$\" >/dev/null; then\n"
+" if expr \"$arg\" : \"^[^:]*:$\" >/dev/null; then\n"
" if test $# -gt 0; then printf \"$arg%s\\0\" \"$@\" >> $BBCMD;\n"
" else sed \"s/\\([^\\x00]\\+\\)/$arg\\1/g\" >> $BBCMD; fi;\n"
" return;\n"