From 7f86d5b43d413631ed38ce8156cc3ae23d120523 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 15 Jul 2021 15:26:40 -0700 Subject: Improved execution order during startup so it's less hacky --- scripts/bbkeys | 3 --- scripts/bbstartup | 5 ----- 2 files changed, 8 deletions(-) (limited to 'scripts') diff --git a/scripts/bbkeys b/scripts/bbkeys index fd1491c..24bd41c 100755 --- a/scripts/bbkeys +++ b/scripts/bbkeys @@ -76,9 +76,6 @@ bbcmd cd:+ ## ;: Show selected files printf '%s\n' "$@" | less -## 0: Go to intitial directory -bbcmd cd:"$BBINITIALPATH" - ## g,Home: Go to first file bbcmd move:0 diff --git a/scripts/bbstartup b/scripts/bbstartup index 79b9b2c..f7ce3b4 100755 --- a/scripts/bbstartup +++ b/scripts/bbstartup @@ -1,11 +1,6 @@ #!/bin/sh # This file contains the script that is run when bb launches -# Delay running command-line commands (bb +) until after startup: -tmpfile="$(mktemp "${TMPDIR-/tmp}/bb-cmdline-XXXXXX")" -trap 'cat "$tmpfile" >> "$BBCMD"; rm -f "$tmpfile"' EXIT -mv "$BBCMD" "$tmpfile" - # Create bb data dir: [ ! -d "$XDG_DATA_HOME/bb" ] && mkdir -p "$XDG_DATA_HOME/bb" -- cgit v1.2.3