Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| --- | |
| - name: Sync uploads between environments | |
| hosts: web | |
| remote_user: "{{ web_user }}" | |
| vars: | |
| project: "{{ wordpress_sites[site] }}" | |
| project_root: "{{ www_root }}/{{ site }}" | |
| tasks: |
| /* | |
| Before using make sure you have: | |
| npm install --save-dev gulp gulp-minify-css gulp-concat gulp-uglify gulp-autoprefixer gulp-sass | |
| Make sure to change the directory names in the default watch function to the CSS/SCSS/SASS directories you are using so it reloads | |
| */ | |
| var gulp = require('gulp'), | |
| minifyCSS = require('gulp-minify-css'), | |
| concat = require('gulp-concat') |
| <?php | |
| /** | |
| * Hide editor on specific pages. | |
| * | |
| */ | |
| add_action( 'admin_init', 'hide_editor' ); | |
| function hide_editor() { | |
| // Get the Post ID. |