adds fuzzel project helper

This commit is contained in:
Dennis Schoepf 2025-11-27 17:15:18 +01:00
parent 4703c104fa
commit 032dff2024
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/sh
projects=$(fd -d=1 -t=d . ~/dev)
projects_with_names=()
for project in ${projects[*]}; do
projects_with_names+=("$(basename $project)\t$project")
done
selected=$(printf "$projects_with_names" | fuzzel --dmenu --with-nth=1 --accept-nth=2 --prompt "Work on: ")
if [ "$selected" != "" ]; then
ghostty --working-directory="$selected"
fi