Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/usr/bin/bash
  2.  
  3. if [ ! -d "~/bin" ]; then
  4.     if [ -L "~/bin" ]; then
  5.         mkdir ~/bin
  6.     else
  7.         mkdir ~/bin
  8.     fi
  9. fi
  10. cd ~/bin
  11. curl -L https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > wp-cli.phar
  12. echo "alias wp='php-cli ~/bin/wp-cli.phar'" >> ~/.bashrc
  13. source ~/.bashrc
  14. cd -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement