How I keep xDebug in php.ini.hbs in LocalWP consistent

When you setup LocalWP and switch PHP versions it re-creates various php.ini.hbs files for each version (and the currently running) of PHP.

The problem is that it resets the xDebug config to use port 9003 every time. Furthermore it always turns off autostart in xDebug v3.

I want my port to be 9021 in every PHP version, and I want autostart on by default. But when I switch PHP versions my configuration isn’t retained.

So, I wrote a small script to help me keep my php.ini.hbs files consistent if it’s ever de-configured my PHP version switching.

  • Check it out here
  • How to get better tabs in Firefox UI (on Mac)

    Yes, the tabs in Firefox suck, they look like pills (or buttons) and look horrible, right?

    This is how I styled them to look a little more visually pleasing:

    Edit /Users//Library/Application Support/Firefox/Profiles//chrome/userChrome.css and add the following:

    Note, you should know where this file is. If you don’t, Google it and come back here.

    .tab-background {
    	border-radius: 0 0 3px 3px !important;
    	border-top-right-radius: 0 !important;
    	border-top-left-radius: 0 !important;
    	margin-right: 0 !important;
    	margin-left: 0 !important;
    	margin-bottom: 0 !important;
    	margin-top: 0 !important;
    }
    
    .tabbrowser-tab:not( [selected=true] ):not( [multiselected=true] ) .tab-background {
    	background-color: color-mix( in srgb, currentColor 10%, transparent);
    }
    

    I am using this theme, curious how this looks in other themes.

    Also, please let me know how this works on Windowz!