mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-07 07:09:15 +00:00
fish: move univ-repos to a non-standard place
This commit is contained in:
parent
d49561657e
commit
8c73dfb8c5
2 changed files with 19 additions and 7 deletions
|
|
@ -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|")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue