Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: address zsh install message displaying wrong completion script #1235

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ def install(dest_dir, print_welcome=False):

if shell:
shell = os.path.basename(shell)
ext = "csh" if "csh" in shell else "sh" # Basic selection logic
if "csh" in shell: # csh and tcsh
ext = "csh"
elif "zsh" in shell:
ext = "zsh"
else:
ext = "sh"

print("You may also want to source the completion script (for %s):" % shell)
print("source {0}/complete.{1}".format(completion_path, ext))
Expand Down