Skip to content

Instantly share code, notes, and snippets.

View Zhwt's full-sized avatar
┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻

Zhwt Zhwt

┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻
  • Earth
View GitHub Profile
@Zhwt
Zhwt / default
Created November 27, 2018 01:22 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}
@Zhwt
Zhwt / README.md
Last active April 10, 2020 10:38 — forked from jhoff/README.md
Bash-only Laravel Artisan tab auto-complete

This version uses a little cache mechanic to reduce waiting time between pressing tabs.

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_COMMANDS=`php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
_artisan()
{