This installs wp-cli

http://wp-cli.org/
This commit is contained in:
c0de 2017-06-22 22:13:57 -05:00
parent 9f0309e394
commit e7fb1c9032
2 changed files with 14 additions and 1 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@
*.swo
*.DS_STORE
*desktop.ini
*bin

View File

@ -1,12 +1,13 @@
#!/bin/bash
# This file will attempt to automatically configure and install my dotfiles
# This assumes that the following are already installed, perhaps we will attempt to auto-install them in the future
# This assumes that the following are already installed and in the PATH; perhaps we will attempt to auto-install them in the future
# tmux
# vim
# zsh
# curl
# git
# php 5.3 or greater
# First things first, install oh-my-zsh
echo "Installing Oh-My-ZSH"
@ -47,6 +48,16 @@ if [[ !-d ~/dotfiles/.bin ]]; then
mkdir -p ~/dotfiles/.bin
fi
# Install wp-cli
echo "Installing wp-cli"
cd ~/dotfiles/.bin
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod a+x wp-cli.phar
ln -s ~/dotfiles/.bin/wp-cli.phar ~/bin/wp
# Since $HOME/bin is in the PATH, this should work
wp --info
echo "Install done."
echo "Check tmux, vim, and your shell to verify everything is correct"
echo "you may need to launch a new instance of your shell"