diff --git a/src/cmd/bootstrap/mod.rs b/src/cmd/bootstrap/mod.rs index f0800b9..60e2225 100644 --- a/src/cmd/bootstrap/mod.rs +++ b/src/cmd/bootstrap/mod.rs @@ -145,7 +145,7 @@ fn completions(prefix: &str, matches: &ArgMatches) -> Result<(), io::Error> { COMMANDS.iter().try_for_each(|cmd| gen_bash_completion(&outdir, &cmd) )?; } if matches.get_flag("fish") || matches.get_flag("all") { - let outdir: PathBuf = ["target", "dist", "share", "fish", "completions"] + let outdir: PathBuf = [prefix, "share", "fish", "completions"] .iter() .collect(); if !outdir.exists() {