1
0

feat: Add Zsh shell completion support for the toak command and integrate its installation.

This commit is contained in:
2026-02-27 01:46:48 +01:00
parent 9a207bc39a
commit 91a99910f5
2 changed files with 62 additions and 0 deletions

View File

@@ -9,4 +9,10 @@ dotnet publish -c Release -r linux-x64
echo "Installing to /usr/bin/toak... (This may prompt for your sudo password)"
sudo cp bin/Release/net10.0/linux-x64/publish/Toak /usr/bin/toak
if [ -d "/usr/share/zsh/site-functions" ]; then
echo "Installing zsh completions..."
sudo cp _toak /usr/share/zsh/site-functions/_toak
fi
echo "Installation complete! You can now run 'toak' from anywhere."
echo "Note: You may need to restart your zsh shell or run 'autoload -Uz compinit && compinit' to enable completions."