Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- if [ ! -d "~/bin" ]; then
- if [ -L "~/bin" ]; then
- mkdir ~/bin
- else
- mkdir ~/bin
- fi
- fi
- cd ~/bin
- curl -L https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > wp-cli.phar
- echo "alias wp='php-cli ~/bin/wp-cli.phar'" >> ~/.bashrc
- source ~/.bashrc
- cd -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement