This commit is contained in:
2026-01-06 14:28:05 +00:00
parent d0168cafe1
commit a47b67faff
6 changed files with 56 additions and 57 deletions

View File

@@ -1,8 +1,10 @@
{pkgs}:
pkgs.writeShellScriptBin "open-project" ''
TARGET=$(fd -t d --exact-depth 1 . $HOME/Projects |
TARGET=$(fd -t d --exact-depth 1 . $HOME/Projects |
sed "s~$HOME/Projects/~~" |
fzf --prompt "project > ")
zellij run -i -- /${pkgs.fish}/bin/fish -c "cd $HOME/Projects/$TARGET; fish"
if [ -n "$TARGET" ]; then
echo "$HOME/Projects/$TARGET"
fi
''