From ecc1a74b37209d8a73802f5af4b42b09ce00c0f5 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 23 Aug 2021 16:43:25 +0200 Subject: [PATCH] use 'bt edit ' as stated in README --- bt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bt b/bt index cfc6553..f56e295 100755 --- a/bt +++ b/bt @@ -1,7 +1,8 @@ #!/bin/sh #load config -#shellcheck disable=SC1091 -. "${XDG_CONFIG_HOME:-$HOME/.config}/bt/config" +CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bt/config" +#shellcheck disable=SC1090 +. "$CONFIG" "$AUTOTRUST" || actions="$(printf '%s\ntrust\n' "$actions")" @@ -55,9 +56,10 @@ startup(){ if [ "$1" = "edit" ]; then case $2 in - "pairlist")${EDITOR:-vim} "$PAIRLIST";; + "config")${EDITOR:-vim} "$CONFIG";; + "paired")${EDITOR:-vim} "$PAIRLIST";; "blacklist")${EDITOR:-vim} "$BLACKLIST";; - "aliaslist")${EDITOR:-vim} "$ALIASLIST";; + "alias")${EDITOR:-vim} "$ALIASLIST";; *)true;; esac exit