From dfa24a8967e7403f8d81d7637e7fe8f73991a59a Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 23 Apr 2021 10:12:43 +0200 Subject: [PATCH] added edit option --- bt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bt b/bt index ce9158c..d4b294e 100755 --- a/bt +++ b/bt @@ -78,6 +78,14 @@ startup(){ fi } + +if [ "$1" = "edit" ]; then + case $2 in + "pairlist")${EDITOR:-vim} "$PAIRLIST" && exit;; + "blacklist")${EDITOR:-vim} "$BLACKLIST" && exit;; + *)true;; + esac +fi #Sadly needs to be run without '&' for now, since it otherwise breaks start_scan variable startup & update_pair_list &