Skip to content

Commit

Permalink
fix: add comments for supabase aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
cerico committed May 3, 2023
1 parent 6322c65 commit 42b1607
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/zsh/supabase
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
supas () {
supas () { # List supabase applications
num=10
f=".env"
arrVar=()
echo Finding $(ColorCyan $num) most recent directories containing $(ColorGreen $f)
echo Finding $(ColorCyan $num) most recent directories containing $(ColorGreen $f) with $(ColorGreen SUPABASE_PROJECT_NAME)
echo ---
for i in `find . -name $f | grep -v node_modules | awk -F "/$f" '{print $1}'`
do
Expand All @@ -14,7 +14,7 @@ supas () {
echo $(ColorCyan ${#arrVar[@]}) total
}

supa () {
supa () { # Populate env file with named supabase credentials # ➜ supa plock285
supas=`grep SUPABASE_PROJECT_NAME ~/.zsh/tokens |awk -F "=" '{print $2}'`
if [[ $1 ]] && [[ ${supas[*]} =~ (^|[[:space:]])$1($|[[:space:]]) ]]
then
Expand Down

0 comments on commit 42b1607

Please sign in to comment.