summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-05-14 21:45:11 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-05-14 21:45:11 +0200
commitb931361385c24dedc44a2e2e6597b250f6820e0b (patch)
tree7552dd47cfd92befe846b56ebed164e1256c5312
parent14801fd551ec5010998480f81eee6af3b64f7ca6 (diff)
bash: List only directories
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 16250f0..6d99bfb 100644
--- a/.bashrc
+++ b/.bashrc
@@ -8,7 +8,7 @@ function __dir_search {
shift 2
local dir=$(
- find "$base" "$@" -printf '%P\n' \
+ find "$base" "$@" -type d -printf '%P\n' \
| sed 1i. \
| sort -r \
| fzf -q "$qry"