feat(tmux): various improvements

This commit is contained in:
Moritz Böhme 2023-10-04 15:02:27 +02:00
parent bd2b6d1af3
commit d943ab8b6d
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 15 additions and 19 deletions

View file

@ -1,4 +1,11 @@
set selected (fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | fzf1 $argv)
set pipe (mktemp --dry-run)
mkfifo $pipe
fd -HIg '.git' ~/ --min-depth 1 --max-depth 5 --type d --prune --exec dirname {} | tee $pipe >/dev/null &
fd . ~/ --min-depth 1 --max-depth 3 --type d | tee $pipe >/dev/null &
set selected (cat $pipe | fzf $argv)
rm -f "$pipe"
set selected_name (basename $selected 2>/dev/null | string replace "." "_")