7include!("src/clap_app.rs");
9const BIN_NAME: &str = "bat";
12 let outdir = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
14 let outdir = match outdir {
16 Some(outdir) => outdir,
19 fs::create_dir_all(&outdir).unwrap();
21 let mut app = build_app(true);
22 app.gen_completions(BIN_NAME, Shell::Bash, &outdir);
23 app.gen_completions(BIN_NAME, Shell::Fish, &outdir);
24 app.gen_completions(BIN_NAME, Shell::Zsh, &outdir);
25 app.gen_completions(BIN_NAME, Shell::PowerShell, &outdir);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list