We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f10c2 commit b102463Copy full SHA for b102463
cdhist
@@ -263,7 +263,7 @@ function cdsub {
263
[ "$1" ] && gr=$($awk 'BEGIN{OFS=".*";for(i=1;i<ARGC;i++) $i=ARGV[i];print}' "$@")
264
printf "%s" " Searching directories..." >&2
265
cdselect "$CDNBDIRS" "$(find -L "$orig" -xdev -mindepth 1 -maxdepth $depth '(' -name '.?*' -prune -o -name '__pycache__' -prune ')' -o -type d -print |\
266
- grep -- "$gr" 2>/dev/null;tput cub 25 >&2;tput el >&2)"
+ sort -u |grep -- "$gr" 2>/dev/null;tput cub 25 >&2;tput el >&2)"
267
}
268
269
# use locate to get directories
0 commit comments