Document Bash completion setup
This commit is contained in:
@@ -15,7 +15,10 @@ if executable is None:
|
||||
quoted_script = shlex.quote(script)
|
||||
if shell == "bash":
|
||||
args = ["--noprofile", "--norc", "-i"]
|
||||
setup = 'PS1="PROMPT> "; source /usr/share/bash-completion/bash_completion; source ' + quoted_script
|
||||
bash_init = os.environ.get("COMPLETION_BASH_INIT", "/usr/share/bash-completion/bash_completion")
|
||||
if not os.path.isfile(bash_init):
|
||||
raise SystemExit("Set COMPLETION_BASH_INIT to the bash-completion initialization file")
|
||||
setup = 'PS1="PROMPT> "; source ' + shlex.quote(bash_init) + "; source " + quoted_script
|
||||
elif shell == "zsh":
|
||||
args = ["-f"]
|
||||
setup = 'PROMPT="PROMPT> "; '
|
||||
|
||||
Reference in New Issue
Block a user