diff options
author | Ben Sima <ben@bsima.me> | 2021-09-27 20:23:18 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-11-26 13:47:38 -0500 |
commit | ef4b5ec052711222c084f01641ad9cbe06a004e3 (patch) | |
tree | b4982993be2a9fdcdb889b2c2896c432612077f9 /Biz/Ide/ns | |
parent | c064dcabccc957fc72ae97561dd70de7e939c418 (diff) |
Use nouns in ns script
Diffstat (limited to 'Biz/Ide/ns')
-rwxr-xr-x | Biz/Ide/ns | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,8 +1,8 @@ #!/usr/bin/env bash -if [[ $NS == "" ]] +if [[ $NOUN == "" ]] then - export NS=$(fd --exclude=_ -t f . $BIZ_ROOT | fzf) + export NOUN=$(fd --exclude=_ -t f . $BIZ_ROOT | fzf) fi if [[ $VERB == "" ]] @@ -10,7 +10,7 @@ then export VERB=$(fzf <<< $(sed 's/ /\n/g' <<< "edit bild push ship lint")) fi -$VERB $NS +$VERB $NOUN printf "\nn:\tchange ns\nv:\tchange verb\nb:\tchange both\n^C:\texit\nelse:\tcontinue\n" read -p " ns> " -n 1 input @@ -21,11 +21,11 @@ then $0 elif [[ $input == "n" ]] then - unset NS + unset NOUN $0 elif [[ $input == "b" ]] then - unset NS + unset NOUN unset VERB $0 else |