aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-02-24 03:39:44 -0800
committerBruce Hill <bruce@bruce-hill.com>2020-02-24 03:39:44 -0800
commit88fd9c416be0f5fe1e5fd48ba7c27d4d1e25261c (patch)
treecfe311fb81c1d12e46b08de175a6296f0aed7a0d /bb.h
parent304cbddf730b86dec2b3d7c414fd0b9a38c69d76 (diff)
Moved bbstartup into a script, renamed helper/ -> scripts/, and added
bbshutdown script. Also tweaked some of the precedence.
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/bb.h b/bb.h
index 479943f..3e1a270 100644
--- a/bb.h
+++ b/bb.h
@@ -26,7 +26,7 @@
#include "bterm.h"
// Macros:
-#define BB_VERSION "0.25.0"
+#define BB_VERSION "0.26.0"
#ifndef PATH_MAX
#define PATH_MAX 4096
@@ -203,8 +203,10 @@ static void run_bbcmd(bb_t *bb, const char *cmd);
static void render(bb_t *bb);
static void restore_term(const struct termios *term);
static int run_script(bb_t *bb, const char *cmd);
+static void set_columns(bb_t *bb, const char *cols);
static void set_cursor(bb_t *bb, int i);
static void set_globs(bb_t *bb, const char *globs);
+static void set_interleave(bb_t *bb, int interleave);
static void set_selected(bb_t *bb, entry_t *e, int selected);
static void set_scroll(bb_t *bb, int i);
static void set_sort(bb_t *bb, const char *sort);
@@ -243,15 +245,4 @@ static const struct termios default_termios = {
static const char *description_str = "bb - an itty bitty console TUI file browser\n";
static const char *usage_str = "Usage: bb (-h/--help | -v/--version | -s | -d | -0 | +command)* [[--] directory]\n";
-static const char *runstartup =
-"if [ \"$BBPATH\" ]; then\n"
-" . \"$BBPATH/bbstartup.sh\"\n"
-"else\n"
-" for path in \"$XDG_CONFIG_HOME/bb\" \"$sysconfdir/xdg/bb\"; do\n"
-" [ -e \"$path/bbstartup.sh\" ] || continue\n"
-" . \"$path/bbstartup.sh\"\n"
-" break\n"
-" done\n"
-"fi\n";
-
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1