Beautify your Terminal

Install oh my zsh for cool templates
http://ohmyz.sh/

For MAC, open Terminal and run this command to install:
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Find templates here:
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

There’s more! Fans have built some more themes here:
https://github.com/robbyrussell/oh-my-zsh/wiki/External-themes

To change the theme for your Terminal on Mac:
1. Open .zshrc file. It’s usually in your User directory:
$ cd ~
2. Then open the .zshrc file in the Terminal editor nano:
$ sudo nano .zshrc
3. Find the line that says:
# ZSH_THEME="robbyrussell"
And change the theme name to any name in the Themes list

To use the External Themes, you’ll have to download the .zsh-theme file to be able to use it. Go to the External Themes link above and click the repository where the theme lives. In the repo file list, copy the file with the extension .zsh-theme and store it in your ~/.oh-my-zsh/themes/ folder. Then you can go into ./zshrc and change the theme name to that.

oh my zsh and iTerm2 are great ways to enhance your Terminal. It’s like having a Terminal on steroids!

Advertisements

WordPress on Mac

Installing WordPress on a Mac?

I used XAMPP as my Apache server distribution cause I’m the most familiar with it. Luckily they have a Mac version that is similar to Windows: https://www.apachefriends.org/index.html

After installing XAMPP, install WordPress: https://wordpress.org/ by placing the unzipped wordpress folder into your XAMPP/htdocs/ directory.

In your XAMPP folder, find manager-osx and double click on it to open the GUI. Click Start All.

Screen Shot 2017-02-12 at 10.43.02 PM.png

Then navigate to Http://localhost/phpmyadmin

Create a database for WordPress called whatever you want:

screen-shot-2017-02-12-at-10-48-45-pm

I called mine WordPress.

Open up the wp-config-sample.php file to edit the database information to the following:

screen-shot-2017-02-12-at-10-53-01-pm

Then rename the file to wp-config.php and save it.

Next, navigate to http://localhost/wordpress and follow the steps to install the WordPress application.

To be able to upload images and install templates using your WordPress application, you’ll need to run this command in your Terminal (of course change the path to the one that matches your directory:

chmod -R 755 /Applications/XAMPP/htdocs/Wordpress/wp-content