#!/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: change ns, v: change verb, b: change both, ^C: exit, else: continue" -n 1 input if [[ $input == "v" ]] then unset VERB $0 elif [[ $input == "n" ]] then unset NS $0 elif [[ $input == "b" ]] then unset NS unset VERB $0 else $0 fi