fish: worktree mode

This commit is contained in:
Primrose 2024-11-15 17:48:55 +01:00
parent 3728c76d12
commit acfc46aeb5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 6 additions and 3 deletions

View file

@ -21,6 +21,7 @@
REPOS_PATH = "repos";
UNIV_REPOS_PATH = "univ-repos";
PLAYGROUND_PATH = "playground";
WORKTREE_PATH = "worktree";
};
packages = [ pkgs.vivid ];
};

View file

@ -4,6 +4,7 @@ function tmux_sessionizer \
set selected \
(begin
fd . $REPOS_PATH $UNIV_REPOS_PATH --exact-depth 2 --type d
fd . $WORKTREE_PATH --exact-depth 1 --type d
fd . $PLAYGROUND_PATH --exact-depth 1 --type d
# Special mode to create a playground
echo "play"