aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-09-30 17:22:17 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-09-30 17:22:17 -0700
commitf0e37a95f1514bc5af12bb42614391c23fad5d94 (patch)
tree9868ec1f0569d12ec9aab307717b46f713f9bb96 /bb.c
parent3fd603c607ec746c1f2347ee3c47ed37f5eff728 (diff)
Fixed an issue with /etc/bb instead of /etc/xdg/bb and moved the startup
command into bb.h with the other bb shell script stuff.
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bb.c b/bb.c
index 94cf20b..ed59704 100644
--- a/bb.c
+++ b/bb.c
@@ -29,16 +29,6 @@ void bb_browse(bb_t *bb, const char *path)
bb->scroll = 0;
bb->cursor = 0;
- const char *runstartup =
-"[ ! \"$XDG_CONFIG_HOME\" ] && XDG_CONFIG_HOME=~/.config;\n"
-"[ ! \"$sysconfdir\" ] && sysconfdir=/etc;\n"
-"if [ -e \"$XDG_CONFIG_HOME/bb/bbstartup.sh\" ]; then\n"
-" . \"$XDG_CONFIG_HOME/bb/bbstartup.sh\";\n"
-"elif [ -e \"$sysconfdir/xdg/bb/bbstartup.sh\" ]; then\n"
-" . \"$sysconfdir/xdg/bb/bbstartup.sh\";\n"
-"elif [ -e \"./bbstartup.sh\" ]; then\n"
-" . \"./bbstartup.sh\";\n"
-"fi\n";
run_script(bb, runstartup);
init_term();
goto force_check_cmds;