Submitter | Sean Farley |
---|---|
Date | Nov. 26, 2013, 1:37 a.m. |
Message ID | <e5da42e61a49bfdd29b6.1385429830@laptop.local> |
Download | mbox | patch |
Permalink | /patch/3145/ |
State | Superseded |
Commit | 191ab08e70993229fb6fe12f3dba2148fbc9ebae |
Headers | show |
Comments
Patch
diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -128,16 +128,23 @@ echo $(($count - 1)) } _hg() { - local cur prev cmd cmd_index opts i + local cur prev cmd cmd_index opts i aliashg # global options that receive an argument local global_args='--cwd|-R|--repository' local hg="$1" local canonical=0 + aliashg=$(alias $hg 2>/dev/null) + if [[ -n "$aliashg" ]]; then + aliashg=${aliashg#"alias $hg='"} + aliashg=${aliashg%"'"} + hg=$aliashg + fi + COMPREPLY=() cur="$2" prev="$3" # searching for the command