summaryrefslogtreecommitdiff
path: root/Biz/Ide/ns
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-16 07:57:39 -0500
committerBen Sima <ben@bsima.me>2021-12-21 11:01:54 -0500
commit47287f3b218e7f30e2ce5b1bdd7f6b0f3fac41ee (patch)
tree4fa04bcc416aac10b198287142d400d13f094194 /Biz/Ide/ns
parent3fad7346721514af8bbe457abd61aab97916d2e3 (diff)
Add hoog.sh, improve ide scripts
Diffstat (limited to 'Biz/Ide/ns')
-rwxr-xr-xBiz/Ide/ns65
1 files changed, 33 insertions, 32 deletions
diff --git a/Biz/Ide/ns b/Biz/Ide/ns
index 6d27d46..aa4beac 100755
--- a/Biz/Ide/ns
+++ b/Biz/Ide/ns
@@ -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
+##