branch | stable |
changeset 44820 | f71c8eea7161 |
parent 39399 | c54d4607e8aa |
--- a/contrib/bash_completion Tue May 12 01:03:12 2020 +0200 +++ b/contrib/bash_completion Mon May 11 08:13:40 2020 +0200 @@ -160,7 +160,10 @@ if [[ -n "$aliashg" ]]; then aliashg=${aliashg#"alias $hg='"} aliashg=${aliashg%"'"} - hg=$aliashg + # `source`d aliases break completion, so ignore them + if [[ "${aliashg:0:7}" != "source " ]]; then + hg=$aliashg + fi fi COMPREPLY=()