aboutsummaryrefslogtreecommitdiff
path: root/bb.h
diff options
context:
space:
mode:
Diffstat (limited to 'bb.h')
-rw-r--r--bb.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/bb.h b/bb.h
index 21bbe89..479943f 100644
--- a/bb.h
+++ b/bb.h
@@ -244,11 +244,14 @@ 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)* [[--] directory]\n";
static const char *runstartup =
-"for path in \"$XDG_CONFIG_HOME/bb\" \"$sysconfdir/xdg/bb\" .; do\n"
-" if [ -e \"$path/bbstartup.sh\" ]; then\n"
-" . \"$path/bbstartup.sh\";\n"
-" break;\n"
-" fi;\n"
-"done\n";
+"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