Commit 0a4aab041098

Vincent Demeester <vincent@sbr.pm>
2019-06-28 19:20:41
j: depth to 3
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 2f154c1
Changed files (1)
modules
profiles
assets
zsh
modules/profiles/assets/zsh/j
@@ -20,11 +20,11 @@ if [[ -n ${fnd} ]];then
         [[ -n ${zz} ]] && { echo "ZSHZ: ${zz}"; [[ -z ${opt_p} ]] && cd ${zz}; return;}
     }
 
-    local results=($(fd -d 2 -t d . ${root}|egrep -i "${fnd}"))
+    local results=($(fd -d 3 -t d . ${root}|egrep -i "${fnd}"))
     [[ ${#results} == 1 ]] && { echo ${results}; [[ -z ${opt_p} ]] && cd ${results} ; return;}
     [[ ${#results} == 0 ]] && { echo "No results found for ${fnd}"; return 1;}
     args="-q ${fnd}"
 fi
 
-res=$(fd -d 2 -t d . ${root}|sed "s,${root},,"|fzf --height 50% --border ${args})
+res=$(fd -d 3 -t d . ${root}|sed "s,${root},,"|fzf --height 50% --border ${args})
 [[ -n ${res} ]] && {echo ${root}${res}; [[ -z ${opt_p} ]]  && cd ${root}${res} ; }