##// END OF EJS Templates
bash_completion: do not use aliased hg if it sources a script (issue6308)...
Peter Arrenbrecht -
r45328:5835018c stable draft
parent child Browse files
Show More
@@ -160,7 +160,10 b' shopt -s extglob'
160 if [[ -n "$aliashg" ]]; then
160 if [[ -n "$aliashg" ]]; then
161 aliashg=${aliashg#"alias $hg='"}
161 aliashg=${aliashg#"alias $hg='"}
162 aliashg=${aliashg%"'"}
162 aliashg=${aliashg%"'"}
163 hg=$aliashg
163 # `source`d aliases break completion, so ignore them
164 if [[ "${aliashg:0:7}" != "source " ]]; then
165 hg=$aliashg
166 fi
164 fi
167 fi
165
168
166 COMPREPLY=()
169 COMPREPLY=()
General Comments 0
You need to be logged in to leave comments. Login now