use 'bt edit <file>' as stated in README

This commit is contained in:
Alexander Bocken 2021-08-23 16:43:25 +02:00
parent 91c3dae0d0
commit ecc1a74b37
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

10
bt
View File

@ -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