mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
IGN:Use /usr/share/bash-completion preferentially
This commit is contained in:
parent
944c19fd1a
commit
1f5a1fac4f
@ -147,10 +147,10 @@ def setup_completion(fatal_errors):
|
||||
from calibre.utils.smtp import option_parser as smtp_op
|
||||
any_formats = ['epub', 'htm', 'html', 'xhtml', 'xhtm', 'rar', 'zip',
|
||||
'txt', 'lit', 'rtf', 'pdf', 'prc', 'mobi', 'fb2', 'odt']
|
||||
f = open_file('/etc/bash_completion.d/libprs500')
|
||||
f.close()
|
||||
os.remove(f.name)
|
||||
f = open_file('/etc/bash_completion.d/calibre')
|
||||
if os.path.exists('/usr/share/bash-completion'):
|
||||
f = open_file('/usr/share/bash-completion/calibre')
|
||||
else:
|
||||
f = open_file('/etc/bash_completion.d/calibre')
|
||||
manifest.append(f.name)
|
||||
|
||||
f.write('# calibre Bash Shell Completion\n')
|
||||
|
Loading…
x
Reference in New Issue
Block a user