Skip to content

Commit

Permalink
Install completions for both edgedb and gel (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen authored Feb 28, 2025
1 parent 2119f89 commit 1acd79e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/cli/gen_completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@ fn write_completion(path: &Path, shell: Shell) -> anyhow::Result<()> {
pub fn write_completions_home() -> anyhow::Result<()> {
let home = home_dir()?;
write_completion(
&home.join(".local/share/bash-completion/completions/edgedb"),
&home.join(".local/share/bash-completion/completions/gel"),
Shell::Bash,
)?;
write_completion(
&home.join(".config/fish/completions/edgedb.fish"),
Shell::Fish,
)?;
write_completion(&home.join(".zfunc/_edgedb"), Shell::Zsh)?;
write_completion(&home.join(".config/fish/completions/gel.fish"), Shell::Fish)?;
write_completion(&home.join(".zfunc/_gel"), Shell::Zsh)?;
Ok(())
}
#[derive(Debug, Clone, Copy, clap::ValueEnum)]
Expand Down

0 comments on commit 1acd79e

Please sign in to comment.