##// END OF EJS Templates
bash_completion: add _hg_branches for list of branches
Sean Farley -
r20131:56df59cc default
parent child Browse files
Show More
@@ -94,6 +94,13 b' shopt -s extglob'
94 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
94 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
95 }
95 }
96
96
97 _hg_branches()
98 {
99 local branches="$(_hg_cmd branches -q)"
100 local IFS=$'\n'
101 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$branches' -- "$cur"))
102 }
103
97 _hg_bookmarks()
104 _hg_bookmarks()
98 {
105 {
99 local bookmarks="$(_hg_cmd bookmarks -q)"
106 local bookmarks="$(_hg_cmd bookmarks -q)"
General Comments 0
You need to be logged in to leave comments. Login now