Skip to content

Commit

Permalink
scripts: nx-select
Browse files Browse the repository at this point in the history
  • Loading branch information
andys8 committed Jan 14, 2025
1 parent 5c99d5b commit 2bd26f9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bin/nx-select
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# nx-select script to select nx project

PROJECTS=$(nx show projects)
EXIT_CODE=$?

if [ "$EXIT_CODE" -ne 0 ]; then
echo "No nx projects found."
exit 1
fi

PROJECT=$(echo "$PROJECTS" | fzf)

if [ -z "$PROJECT" ]; then
exit 1
fi

echo "$PROJECT"

0 comments on commit 2bd26f9

Please sign in to comment.