From 9dcfb66c99909d1b51a76bdaf75ddbdb030fe270 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 14 Jun 2021 10:39:17 -0400 Subject: Move commands and add ns function --- Biz/Ide/ns | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 Biz/Ide/ns (limited to 'Biz/Ide/ns') diff --git a/Biz/Ide/ns b/Biz/Ide/ns new file mode 100755 index 0000000..2791903 --- /dev/null +++ b/Biz/Ide/ns @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +if [[ $NS == "" ]] +then + export NS=$(fd --exclude=_ -t f . $BIZ_ROOT | fzf) +fi + +if [[ $VERB == "" ]] +then + export VERB=$(fzf <<< $(sed 's/ /\n/g' <<< "edit bild push ship lint")) +fi + +$VERB $NS + +read -p "n to change ns, v to change verb, enter to continue, or ^C to exit" -n 1 input + +if [[ $input == "v" ]] +then + unset VERB + $0 +elif [[ $input == "n" ]] +then + unset NS + $0 +else + $0 +fi -- cgit v1.2.3