Category Archives: Shell

zsh: non-standard shell error

Getting the following error when trying to change your mac terminal to use zsh?

chsh: /usr/local/bin/zsh: non-standard shell

All you need to do to fix this is to add the zshell path ( /usr/local/bin/zsh) to your /etc/shells file.

sudo vim /etc/shells

I added  /usr/local/bin/zsh to the end of the file.





Adding User to a Group in Linux Ubuntu from command line

How to add an existing user to existing group?
using -a -G option, adds user to the supplemental group(s).

sudo usermod -a -G [groupname] [username]
How to change existing david’s primary group to www?

sudo usermod -g www [username]


How to verify user settings?

id [username]



Can’t install RMagick 2.13.1. Can’t find Magick-config for mac

brew install imagemagick

mdfind MagickWand.h

C_INCLUDE_PATH=/path/MagickWand.h gem install rmagick

C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick/wand/MagickWand.h gem install rmagick

Might have to take these additional steps if you are using mountain lion.

It appears it’s a problem reported on the Homebrew github repo ( blaming rmagick itself not supporting newer versions of imagemagick. On that same issue (, you can find this link: which actually worked for me. This is what he does:

cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
ln -s libMagick++-Q16.7.dylib libMagick++.dylib
ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib

git push fails with insufficient permission message

Getting this error message during a git push?

Counting objects: 13, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (11/11), done.
error: insufficient permission for adding an object to repository database ./objects

fatal: failed to write object
error: pack-objects died of signal 13

This can be fixed by running the following.