How to enable auto complete for git commands and branches on Mac OSX terminal / Command line

GIT and Bash Logos

If you want to enable tab auto complete at the command line on Mac OSX terminal, there is a handy auto-completion script you can use. https://github.com/git/git/blob/master/contrib/completion/git-completion.bash Using git-completion script to enable auto complete for GIT commands Download and save the git-completion script to your home directory curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash Then open the .bash_profile file

Adding dynamic classes to your custom WordPress widgets

I recently released an ad management plugin for WordPress called “Easy AdSense Ads & Scripts Manager“. In this plugin we have a custom widget with option to remove the padding and borders (if any) added by the theme. I did not think much before implementing this feature and was expecting WordPress to have some kind of hook