fish: move univ-repos to a non-standard place

This commit is contained in:
Primrose 2024-11-15 18:16:54 +01:00
parent d49561657e
commit 8c73dfb8c5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 19 additions and 7 deletions

View file

@ -3,12 +3,16 @@ function tmux_sessionizer \
set selected \
(begin
fd . $REPO_PATH $UNIV_REPO_PATH --exact-depth 2 --type d
fd . $REPO_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"
echo "dotfiles"
# Configurable "generators" for other paths
if [ -n "$TMUX_SESSIONIZER_SOURCE" ]
eval "$TMUX_SESSIONIZER_SOURCE"
end
end 2> /dev/null | sed -e "s|^$HOME|~|" | fzf)
set selected (echo $selected | sed -e "s|^~|$HOME|")