From 5d33dbacac3564c50b9f3a74cfef6a956c35dd80 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 3 Aug 2022 23:05:52 -0500 Subject: add a CLI flag for specifying config file location (#2666) --- contrib/completion/hx.bash | 2 +- contrib/completion/hx.fish | 1 + contrib/completion/hx.zsh | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/completion/hx.bash b/contrib/completion/hx.bash index 87c34028..8a2d9777 100644 --- a/contrib/completion/hx.bash +++ b/contrib/completion/hx.bash @@ -16,7 +16,7 @@ _hx() { COMPREPLY=($(compgen -W "$languages" -- $2)) ;; *) - COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit" -- $2)) + COMPREPLY=($(compgen -fd -W "-h --help --tutor -V --version -v -vv -vvv --health -g --grammar --vsplit --hsplit -c --config" -- $2)) ;; esac } && complete -F _hx hx diff --git a/contrib/completion/hx.fish b/contrib/completion/hx.fish index df2fb500..65f248d4 100644 --- a/contrib/completion/hx.fish +++ b/contrib/completion/hx.fish @@ -11,3 +11,4 @@ complete -c hx -s v -o vv -o vvv -d "Increases logging verbosity" complete -c hx -s V -l version -d "Prints version information" complete -c hx -l vsplit -d "Splits all given files vertically into different windows" complete -c hx -l hsplit -d "Splits all given files horizontally into different windows" +complete -c hx -s c -l config -d "Specifies a file to use for completion" diff --git a/contrib/completion/hx.zsh b/contrib/completion/hx.zsh index f9d58d3c..e3375656 100644 --- a/contrib/completion/hx.zsh +++ b/contrib/completion/hx.zsh @@ -16,6 +16,8 @@ _hx() { "--grammar[Fetches or builds tree-sitter grammars]:action:->grammar" \ "--vsplit[Splits all given files vertically into different windows]" \ "--hsplit[Splits all given files horizontally into different windows]" \ + "-c[Specifies a file to use for configuration]" \ + "--config[Specifies a file to use for configuration]" \ "*:file:_files" case "$state" in -- cgit v1.2.3-70-g09d2