From b7ad0e93a243da19e39fc750054afcfa3c6bb9b0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 11 Nov 2019 12:29:40 -0800 Subject: 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. --- bb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bb.h') 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" -- cgit v1.2.3