aboutsummaryrefslogtreecommitdiff
path: root/bbstartup.sh
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 /bbstartup.sh
parent304cbddf730b86dec2b3d7c414fd0b9a38c69d76 (diff)
Moved bbstartup into a script, renamed helper/ -> scripts/, and added
bbshutdown script. Also tweaked some of the precedence.
Diffstat (limited to 'bbstartup.sh')
-rwxr-xr-xbbstartup.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/bbstartup.sh b/bbstartup.sh
deleted file mode 100755
index a64394e..0000000
--- a/bbstartup.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-# This file contains the script that is run when bb launches
-# See API.md for details on bb's command API.
-
-[ ! -d "$XDG_DATA_HOME/bb" ] && mkdir -p "$XDG_DATA_HOME/bb"
-
-# Load key bindings
-if [ "$BBPATH" ]; then
- cat "$BBPATH/bindings.bb" "$XDG_CONFIG_HOME/bb/bindings.bb"
-else
- cat "$sysconfdir/xdg/bb/bindings.bb" "$XDG_CONFIG_HOME/bb/bindings.bb"
-fi 2>/dev/null | awk '/^#/ {next} /^[^ ]/ {printf "\0bind:"} {print $0} END {printf "\0"}' >> "$BBCMD"
-
-if [ -e "$XDG_DATA_HOME/bb/state.sh" ]; then
- . "$XDG_DATA_HOME/bb/state.sh"
-fi