Add update-shell-completions.sh

This commit is contained in:
Julian Ospald 2023-11-13 16:00:31 +08:00
parent d6601b0353
commit 47ef380ebd
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43

View File

@ -0,0 +1,8 @@
#!/bin/sh
set -xue
cabal --verbose=0 run ghcup:exe:ghcup -- --bash-completion-script ghcup > scripts/shell-completions/bash
cabal --verbose=0 run ghcup:exe:ghcup -- --zsh-completion-script ghcup > scripts/shell-completions/zsh
cabal --verbose=0 run ghcup:exe:ghcup -- --fish-completion-script ghcup > scripts/shell-completions/fish