Skip to content

Instantly share code, notes, and snippets.

@SyedDevop
SyedDevop / README.md
Created January 1, 2026 14:20 — forked from jhoff/README.md
Bash-only Laravel Artisan tab auto-complete

If you are an Oh-my-zsh user, see the Laravel 5 plugin

For the rest of us Bash users, all of the Laravel Artisan autocomplete solutions out there require installing a composer package to get a list of artisan commands. Turns out this isn't really necessary. Simply add the provided code in ~/.bash_profile ( or similarly sourced file ) and you'll get artisan command tab completes on any project on your system.

_artisan()
{
	COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
	COMMANDS=`php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
	COMPREPLY=(`compgen -W "$COMMANDS" -- "${COMP_WORDS[COMP_CWORD]}"`)
@SyedDevop
SyedDevop / .clangd
Created July 23, 2025 09:23
Neovim .clangd config for pico
# Don't forget to chance the home directory. and the path to pico sdk.
CompileFlags:
Add:
- --target=arm-none-eabi
- -mcpu=cortex-m0plus
- -mthumb
- -I<HOME>/.pico-sdk/toolchain/14_2_Rel1/arm-none-eabi/include
- -I<HOME>/.pico-sdk/sdk/2.1.1/src/common
- -I<HOME>/.pico-sdk/sdk/2.1.1/src/boards/include