[+] Autocomplete generator script

https://github.com/hykilpikonna/hyfetch/issues/96
This commit is contained in:
Azalea Gui 2023-05-01 16:33:52 -04:00
parent 9747856f15
commit 2007c7c01e
2 changed files with 9 additions and 1 deletions

8
tools/gen-autocomplete.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Echo all commands
set -x
shtab --shell=bash hyfetch.main.create_parser > hyfetch/scripts/autocomplete.bash
shtab --shell=zsh hyfetch.main.create_parser > hyfetch/scripts/autocomplete.zsh
shtab --shell=tcsh hyfetch.main.create_parser > hyfetch/scripts/autocomplete.csh