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
|
#!/bin/sh
|
||||||
#load config
|
#load config
|
||||||
#shellcheck disable=SC1091
|
CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/bt/config"
|
||||||
. "${XDG_CONFIG_HOME:-$HOME/.config}/bt/config"
|
#shellcheck disable=SC1090
|
||||||
|
. "$CONFIG"
|
||||||
|
|
||||||
"$AUTOTRUST" || actions="$(printf '%s\ntrust\n' "$actions")"
|
"$AUTOTRUST" || actions="$(printf '%s\ntrust\n' "$actions")"
|
||||||
|
|
||||||
@ -55,9 +56,10 @@ startup(){
|
|||||||
|
|
||||||
if [ "$1" = "edit" ]; then
|
if [ "$1" = "edit" ]; then
|
||||||
case $2 in
|
case $2 in
|
||||||
"pairlist")${EDITOR:-vim} "$PAIRLIST";;
|
"config")${EDITOR:-vim} "$CONFIG";;
|
||||||
|
"paired")${EDITOR:-vim} "$PAIRLIST";;
|
||||||
"blacklist")${EDITOR:-vim} "$BLACKLIST";;
|
"blacklist")${EDITOR:-vim} "$BLACKLIST";;
|
||||||
"aliaslist")${EDITOR:-vim} "$ALIASLIST";;
|
"alias")${EDITOR:-vim} "$ALIASLIST";;
|
||||||
*)true;;
|
*)true;;
|
||||||
esac
|
esac
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user