diff --git a/src/.bashrc b/src/.bashrc index e3f4f4f..e031081 100755 --- a/src/.bashrc +++ b/src/.bashrc @@ -385,7 +385,15 @@ function _bashrc_.complete { return 1 fi - local parent_depth path_array i parent_path word_list matched_word + COMPREPLY=() + + # don't try to find matches if the search term starts with '/' + if [[ "${word:0:1}" == '/' ]]; then + return + fi + + local parent_depth path_array i IGNORE_CASE search_path search_term \ + search_word matched_words matched_word parent_depth="${cmd//.}" if [ -z "$parent_depth" ]; then parent_depth=1 @@ -394,18 +402,62 @@ function _bashrc_.complete { for (( i=0; i