From: Oleg Broytman Date: Thu, 20 Mar 2025 10:23:41 +0000 (+0300) Subject: Feat(.bashrc): Scan subdirectories in `$HOME/lib/config` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b565a1d7097f9037e512a747e724e95fd7300d36;p=dotfiles.git Feat(.bashrc): Scan subdirectories in `$HOME/lib/config` --- diff --git a/.bashrc b/.bashrc index ce4af33..a403c77 100644 --- a/.bashrc +++ b/.bashrc @@ -161,7 +161,9 @@ fi unset _BASH_COMPLETIONS_DIR has_completion delegate_completion if [ -d "$HOME/lib/config" ]; then - complete -W "`cd \"$HOME/lib/config\" && echo *`" include + complete \ + -W "`cd \"$HOME/lib/config\" && find . -type f -printf '%P\n'`" \ + include fi complete -W "`echo $BROWSER | sed 's/:/ /g'`" start-browser