This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 42469f0  Fix bug in Breeze2 auto-complete setup with root files 
modified (#21636)
42469f0 is described below

commit 42469f0434f1377c9f9dfd78cbf033ef21e2e505
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Feb 17 14:54:31 2022 +0100

    Fix bug in Breeze2 auto-complete setup with root files modified (#21636)
    
    There was a bug with "/" added when files were modified by
    the autocomplete.
    
    Fixes: #21163
---
 dev/breeze/src/airflow_breeze/breeze.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev/breeze/src/airflow_breeze/breeze.py 
b/dev/breeze/src/airflow_breeze/breeze.py
index 2a0b201..2feccee 100755
--- a/dev/breeze/src/airflow_breeze/breeze.py
+++ b/dev/breeze/src/airflow_breeze/breeze.py
@@ -239,16 +239,16 @@ def setup_autocomplete():
     click.echo(f"Activation command scripts are created in this autocompletion 
path: {autocomplete_path}")
     if click.confirm(f"Do you want to add the above autocompletion scripts to 
your {shell} profile?"):
         if shell == 'bash':
-            script_path = Path('~').expanduser() / '/.bash_completion'
+            script_path = Path('~').expanduser() / '.bash_completion'
             command_to_execute = f"source {autocomplete_path}"
             write_to_shell(command_to_execute, script_path, breeze_comment)
         elif shell == 'zsh':
-            script_path = Path('~').expanduser() / '/.zshrc'
+            script_path = Path('~').expanduser() / '.zshrc'
             command_to_execute = f"source {autocomplete_path}"
             write_to_shell(command_to_execute, script_path, breeze_comment)
         elif shell == 'fish':
             # Include steps for fish shell
-            script_path = Path('~').expanduser() / 
f'/.config/fish/completions/{NAME}.fish'
+            script_path = Path('~').expanduser() / 
f'.config/fish/completions/{NAME}.fish'
             with open(path) as source_file, open(script_path, 'w') as 
destination_file:
                 for line in source_file:
                     destination_file.write(line)

Reply via email to