zsh and Local by Flywheel

Instructions for how to run zsh and Oh My ZSH in a local site using Local by Flywheel:

run one-single command to install zsh + Oh My Zsh, try the following (it’s the commands above but concatenated and slightly modified to allow for a one-liner). Step #1 is still required.

Right-click on the site and go to “Open Site SSH”


apt-get update && apt-get install -y zsh git wget && (echo 'zsh' >> ~/.bashrc) && (wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh); (echo 'alias wp="wp --allow-root"' >> ~/.zshrc); zsh

If you’d like to break apart each step you could…

  • Right-click on the site and go to “Open Site SSH”
  • Run: apt-get update
  • Run: apt-get install -y zsh git wget
  • Run: echo 'zsh' >> ~/.bashrc
  • Run: sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  • Run: echo 'alias wp="wp --allow-root"' >> ~/.zshrc
  • Run: zsh

Source: http://local.getflywheel.com/community/t/using-terminal-with-zsh-shell/2041/3?u=johndcoy

By John Coy

Austin, Texas is the place John Coy and his wife Mary call home. John Coy is a WordPress enthusiast, CSS junky and aspiring WordPress developer. John Coy is always passionate about helping people achieve happiness. Follow and read John Coy's tweetson Twitter. John Coy's photographt skills can be seen on Instagram - or the lack thereof.

%d bloggers like this: