diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-02-24 03:39:44 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-02-24 03:39:44 -0800 |
| commit | 88fd9c416be0f5fe1e5fd48ba7c27d4d1e25261c (patch) | |
| tree | cfe311fb81c1d12e46b08de175a6296f0aed7a0d /helpers/bbtargets | |
| parent | 304cbddf730b86dec2b3d7c414fd0b9a38c69d76 (diff) | |
Moved bbstartup into a script, renamed helper/ -> scripts/, and added
bbshutdown script. Also tweaked some of the precedence.
Diffstat (limited to 'helpers/bbtargets')
| -rwxr-xr-x | helpers/bbtargets | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/helpers/bbtargets b/helpers/bbtargets deleted file mode 100755 index 1862ca0..0000000 --- a/helpers/bbtargets +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# If the user is doing something ambiguous, like selecting a bunch of files, -# moving the cursor off of those files, then doing an action, this will ask -# what they mean to target, then output either 'cursor' or 'selected'. -# Usage: targets "$BBCURSOR" "$@" -cursor="$1" -shift -if [ $# -gt 0 ]; then - for f in "$@"; do - if [ "$f" = "$cursor" ]; then - intended='Selected files' - break - fi - done -else - intended='Cursor file' -fi - -[ -z "$intended" ] && intended="$(printf '%s\0' 'Cursor file' 'Selected files' 'Both' | bbpick 'Which do you want to delete? ')" - -case "$intended" in - Cursor*) echo cursor ;; - Selected*) echo selected ;; - Both) echo both ;; -esac |
