Files
aglab.dotfiles/bin/fuzzel-vsc-entries.sh
SilverAg.L 3446d3d97e replace ykrun with runbg for background command execution
... to solve the nvm-sh environment issue.(mostly vscode)

NOTE: may also import other envvars, tbc.
2025-12-16 02:21:20 +08:00

16 lines
324 B
Bash
Executable File

#!/bin/bash
desktop="$HOME/Desktop"
options=""
for item in $(ls $desktop); do
options+=$item
if [[ -d "$desktop/$item" ]]; then
options+='/'
fi
options+="\n"
done
fsarg=$(echo -en "$options" | fuzzel --dmenu --prompt="Open Project with VSCode:")
[ -z "$fsarg" ] || runbg -- code "$desktop/$fsarg"