Skip to content

Instantly share code, notes, and snippets.

@afragen
Last active April 29, 2023 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afragen/7fc208a836db4b669927a0fae8fc4089 to your computer and use it in GitHub Desktop.
Save afragen/7fc208a836db4b669927a0fae8fc4089 to your computer and use it in GitHub Desktop.
My oh-my-zsh aliases
alias wp-git-core="sh -c \"\$(curl -fsSL https://gist.github.com/afragen/e1aa3ffccf1a73618ee6e756bd95d297/raw/core-git-wp.sh)\";cd ."
alias wp-git-develop="sh -c \"\$(curl -fsSL https://gist.github.com/afragen/e1aa3ffccf1a73618ee6e756bd95d297/raw/develop-git-wp.sh)\";cd ."
alias local-socket="SOCKET=\$(mysqld --verbose --help | grep ^socket | awk '{print \$2, \$3, \$4}');ln -sfv \$SOCKET /tmp/mysql.sock"
alias brewup="brew update && brew upgrade && brew cleanup && brew doctor"
#lsof -i | grep LISTEN | grep 'nginx\|httpd'
alias http-listen="lsof -i | grep LISTEN | grep 'nginx\|httpd'"
#lsof -i | grep LISTEN | grep 'nginx\|httpd' | awk '{print $2}' | xargs -n 1 kill
alias http-kill="lsof -i | grep LISTEN | grep 'nginx\|httpd' | awk '{print \$2}' | xargs -n 1 kill"
alias localwp-cli="python /Users/afragen/Documents/github/localwp-cli/localwp-cli.py"
alias setup-phpunit-local="sh ../setup-phpunit.sh --wp-version=trunk --wp-ts-version=trunk"
alias install-ruleset="curl -o phpcs.xml https://gist.githubusercontent.com/afragen/4c56ba9902761d9baed9783676196802/raw/phpcs.xml"
alias install-core-ruleset="curl -o phpcs.xml.dist https://gist.githubusercontent.com/afragen/4c56ba9902761d9baed9783676196802/raw/phpcs.xml.dist"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment