feat: Add Zsh shell completion support for the toak command and integrate its installation.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user