summaryrefslogtreecommitdiff
path: root/Biz/Ide/ns
blob: c1db77b91b364bcaf54401479973957dacfd1c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
##
  if [[ $NOUN == "" ]]
  then
    export NOUN=$(fd --exclude=_ -t f . $BIZ_ROOT | fzf-tmux)
  fi
##
  if [[ $VERB == "" ]]
  then
    export VERB=$(fzf-tmux <<< $(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
##