From 8fc9f3463f85eaabadbd0383c3684f6e9df5eb1a Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Thu, 17 Apr 2014 13:39:06 +0200 Subject: [PATCH] Add more paths to search for bash completion --- beets/ui/commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 7223490c4..24c798e94 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -1466,12 +1466,13 @@ def print_completion(*args): log.warn(u'Warning: Unable to find the bash-completion package. ' u'Command line completion might not work.') -BASH_COMPLETION_PATHS = [ +BASH_COMPLETION_PATHS = map(syspath, [ u'/etc/bash_completion', u'/usr/share/bash-completion/bash_completion', u'/usr/share/local/bash-completion/bash_completion', - u'/opt/local/share/bash-completion/bash_completion', -] + u'/opt/local/share/bash-completion/bash_completion', # SmartOS + u'/usr/local/etc/bash_completion', # Homebrew +]) def completion_script(commands):