File tree Expand file tree Collapse file tree
symlinks/config/fish/functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44function pj -d " Search projects directory and navigate to selected project"
55 set -f projects_path " $HOME /src"
66 if count $argv > /dev/null
7- set -f repo_path (find " $projects_path " -mindepth 3 -maxdepth 3 -type d | awk -F " $projects_path " ' {print $2}' | fzf --query =" $argv " -1 | head -n 1)
7+ set -f repo_path (find " $projects_path " -mindepth 3 -maxdepth 6 -type d -execdir test -d {}/.git ' ; ' -print -prune | awk -F " $projects_path " ' {print $2}' | fzf --query =" $argv " -1 | head -n 1)
88 else
9- set -f repo_path (find " $projects_path " -mindepth 3 -maxdepth 3 -type d | awk -F " $projects_path " ' {print $2}' | fzf)
9+ set -f repo_path (find " $projects_path " -mindepth 3 -maxdepth 6 -type d -execdir test -d {}/.git ' ; ' -print -prune | awk -F " $projects_path " ' {print $2}' | fzf)
1010 end
1111
1212 if test -n " $repo_path "
You can’t perform that action at this time.
0 commit comments