use 'bt edit <file>' as stated in README
This commit is contained in:
parent
91c3dae0d0
commit
ecc1a74b37
10
bt
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user