mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
Merge branch 'blueyed-use-set-for-complete-funcs'
This commit is contained in:
commit
37fcd9534b
1 changed files with 4 additions and 4 deletions
|
@ -236,9 +236,9 @@ class Completer(object):
|
||||||
if len(inp) == 0:
|
if len(inp) == 0:
|
||||||
self.bash_complete_files = {}
|
self.bash_complete_files = {}
|
||||||
return
|
return
|
||||||
|
if self.bash_complete_funcs:
|
||||||
inp.append('shopt -s extdebug')
|
inp.append('shopt -s extdebug')
|
||||||
declare_f = 'declare -F '
|
inp.append('declare -F ' + ' '.join([f for f in set(self.bash_complete_funcs.values())]))
|
||||||
inp += [declare_f + f for f in self.bash_complete_funcs.values()]
|
|
||||||
inp.append('shopt -u extdebug\n')
|
inp.append('shopt -u extdebug\n')
|
||||||
out = subprocess.check_output(['bash'], input='\n'.join(inp),
|
out = subprocess.check_output(['bash'], input='\n'.join(inp),
|
||||||
universal_newlines=True)
|
universal_newlines=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue