Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
findOutput=$(find "/home/jack/Code Project Templates" -maxdepth 1 -type d -printf "|%P")
typeOptions=Empty${findOutput:1}
result=$(zenity --class Code --forms --title "New Project" --text="Create new project" --add-entry="Name" --add-combo="Type" --combo-values "$typeOptions")
if [[ "$result" ]]
then
name=$(echo $result | python3 -c "print(input().split('|')[0])")