Show More
@@ -130,12 +130,19 b' shopt -s extglob' | |||||
130 |
|
130 | |||
131 | _hg() |
|
131 | _hg() | |
132 | { |
|
132 | { | |
133 | local cur prev cmd cmd_index opts i |
|
133 | local cur prev cmd cmd_index opts i aliashg | |
134 | # global options that receive an argument |
|
134 | # global options that receive an argument | |
135 | local global_args='--cwd|-R|--repository' |
|
135 | local global_args='--cwd|-R|--repository' | |
136 | local hg="$1" |
|
136 | local hg="$1" | |
137 | local canonical=0 |
|
137 | local canonical=0 | |
138 |
|
138 | |||
|
139 | aliashg=$(alias $hg 2>/dev/null) | |||
|
140 | if [[ -n "$aliashg" ]]; then | |||
|
141 | aliashg=${aliashg#"alias $hg='"} | |||
|
142 | aliashg=${aliashg%"'"} | |||
|
143 | hg=$aliashg | |||
|
144 | fi | |||
|
145 | ||||
139 | COMPREPLY=() |
|
146 | COMPREPLY=() | |
140 | cur="$2" |
|
147 | cur="$2" | |
141 | prev="$3" |
|
148 | prev="$3" |
General Comments 0
You need to be logged in to leave comments.
Login now