summaryrefslogtreecommitdiffhomepage
path: root/build.sh
diff options
context:
space:
mode:
authorClément Joly <oss@131719.xyz>2020-06-20 18:01:13 +0200
committerLinus Färnstrand <linus@mullvad.net>2020-06-26 11:28:33 +0200
commit2d4aea4e2180058ad4bf9fcd3103be2f0fc363ca (patch)
tree9ecda02e4e6ab40f3dccf219e6f0d830df0f0273 /build.sh
parenta54e05de9c40537dd2f8b67d8edd0baebc83df6b (diff)
downloadmullvadvpn-2d4aea4e2180058ad4bf9fcd3103be2f0fc363ca.tar.xz
mullvadvpn-2d4aea4e2180058ad4bf9fcd3103be2f0fc363ca.zip
Add fish shell completions
Generate fish shell completions at build time. Empower fish users with completions. Completions are copied in the [recommended directory](https://fishshell.com/docs/current/#where-to-put-completions)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 168f01502d..877f3c65a1 100755
--- a/build.sh
+++ b/build.sh
@@ -138,7 +138,7 @@ echo "Building Rust code in release mode using $RUSTC_VERSION..."
if [[ ("$(uname -s)" == "Darwin") || ("$(uname -s)" == "Linux") ]]; then
pushd mullvad-cli
mkdir -p "$SCRIPT_DIR/dist-assets/shell-completions"
- for sh in bash zsh; do
+ for sh in bash zsh fish; do
echo "Generating shell completion script for $sh..."
cargo +stable run $CARGO_ARGS --release --features shell-completions -- \
shell-completions "$sh" "$SCRIPT_DIR/dist-assets/shell-completions/"