1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-03-19 00:58:47 +00:00
bat/scripts/test-completions.fish
2024-08-18 18:56:06 +02:00

12 lines
488 B
Fish
Executable File

#!/usr/bin/env fish
# Spawns a new fish shell that's set up with a PATH that points
# the `bat` executable and completions from the `target/` dir.
set target_dir "$(dirname (realpath (status -f)))/../target/debug"
set completion_file $target_dir/build/bat-*/out/assets/completions/bat.fish
set --export PATH "$target_dir:$PATH"
fish \
--no-config --private \
--init-command="set -U fish_color_command brcyan; set -U fish_pager_color_description yellow; source $completion_file"