diff options
Diffstat (limited to 'Biz/Ide/ns')
-rwxr-xr-x | Biz/Ide/ns | 65 |
1 files changed, 33 insertions, 32 deletions
@@ -1,33 +1,34 @@ #!/usr/bin/env bash - -if [[ $NOUN == "" ]] -then - export NOUN=$(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 $NOUN - -printf "\nn:\tchange ns\nv:\tchange verb\nb:\tchange both\n^C:\texit\nelse:\tcontinue\n" -read -p " ns> " -n 1 input - -if [[ $input == "v" ]] -then - unset VERB - $0 -elif [[ $input == "n" ]] -then - unset NOUN - $0 -elif [[ $input == "b" ]] -then - unset NOUN - unset VERB - $0 -else - $0 -fi +## + if [[ $NOUN == "" ]] + then + export NOUN=$(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 $NOUN +## + printf "\nn:\tchange ns\nv:\tchange verb\nb:\tchange both\n^C:\texit\nelse:\tcontinue\n" + read -p " ns> " -n 1 input +## + if [[ $input == "v" ]] + then + unset VERB + $0 + elif [[ $input == "n" ]] + then + unset NOUN + $0 + elif [[ $input == "b" ]] + then + unset NOUN + unset VERB + $0 + else + $0 + fi +## |