aboutsummaryrefslogtreecommitdiff
path: root/bbstartup.sh
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-11-24 21:28:46 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-11-24 21:28:46 -0800
commit1838fd9b9c0d8008bfe212463759449e89dd0ad3 (patch)
tree80e8345abdcee131e1f588a7eef4b8e40b452830 /bbstartup.sh
parent18a63e4bc041538dd20951f492af2af82142aa5d (diff)
sed change for compatibility with Mac's version of sed.
Diffstat (limited to 'bbstartup.sh')
-rwxr-xr-xbbstartup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bbstartup.sh b/bbstartup.sh
index ecc7e18..80615fb 100755
--- a/bbstartup.sh
+++ b/bbstartup.sh
@@ -5,10 +5,10 @@
# Load key bindings
# first check ~/.config/bb/bindings.bb, then /etc/xdg/bb/bindings.bb, then ./bindings.bb
if [ ! -e "$XDG_CONFIG_HOME/bb/bindings.bb" ] && [ ! -e "$sysconfdir/xdg/bb/bindings.bb" ]; then
- cat "./bindings.bb" 2>/dev/null | sed -e '/^#/d' -e "s/^[^ ]/$(printf '\034')bind:\\0/" | tr '\034' '\0' >> "$BBCMD"
+ cat "./bindings.bb" 2>/dev/null | sed -e '/^#/d' -e "s/^\([^ ]\)/$(printf '\034')bind:\\1/" | tr '\034' '\0' >> "$BBCMD"
else
for path in "$sysconfdir/xdg/bb" "$XDG_CONFIG_HOME/bb"; do
cat "$path/bindings.bb" 2>/dev/null
- done | sed -e '/^#/d' -e "s/^[^ ]/$(printf '\034')bind:\\0/" | tr '\034' '\0' >> "$BBCMD"
+ done | sed -e '/^#/d' -e "s/^\([^ ]\)/$(printf '\034')bind:\\1/" | tr '\034' '\0' >> "$BBCMD"
fi
printf '\0' >> "$BBCMD"