Menu

Laravel "artisan" autocomplete in fish shell.
📰

Laravel "artisan" autocomplete in fish shell.

DEV Community: php·Al Amrikasir·about 7 hours ago
#oYLXMTFS
#devto#dev#artisan#fish#completion
Reading 0:00
15s threshold

So, lately I switch shell from zsh to fish.

If you’ve recently made the jump from Zsh to Fish Shell like me, you’ve probably noticed how snappy, modern, and out-of-the-box functional Fish is. But if you’re a Laravel developer, there’s a good chance you immediately hit one annoying speed bump: losing artisan auto-completion .

Back in Zsh with Oh My Zsh , typing ./artisan and hitting Tab gave you contextual autocomplete for every command, argument, and flag. Naturally, when switching to Fish Shell , you want that feature back.

Here’s how the built-in generator works, why it breaks in everyday workflows, and a simple shell wrapper script to fix it cleanly.

The Standard Approach (And Why It Falls Short)

Laravel includes a built-in command generator for shell completion script via Symfony's Console component.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.