refactor
This commit is contained in:
8
profiles/open-project.nix
Normal file
8
profiles/open-project.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{pkgs}:
|
||||
pkgs.writeShellScriptBin "open-project" ''
|
||||
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"
|
||||
''
|
||||
Reference in New Issue
Block a user