These are the personal shell config files of Ben Lind. Feel free to fork and improve as you see fit.
- XCode command line tools (to install, just try to run a git command)
- Homebrew
- Zsh
- Oh My Zsh (you can use the manual installation if there are firewall issues)
Clone this project onto your hard drive (e.g., to ~/.shell
):
git clone git@github.com:benlind/shell-config.git ~/.shell
Make sure you install Oh My Zsh first, and then overwrite ~/.zshrc
:
echo "source ~/.shell/zshrc" > ~/.zshrc
To get the agnoster theme to work correctly, you need to install the Meslo font. This font comes with Powerline, and you can install just the fonts by running this:
git clone https://github.com/powerline/fonts.git && cd fonts && ./install.sh
Then set your terminal font to Meslo in the Profiles. See this page for what LG, L, M, S, and DZ mean. I chose "Meslo LG L for Powerline" which has a larger line height. That makes the triangle separators not bleed through into the above/below lines.
Installation instructions. Specifically you need to clone the autosuggestions directory, since zsh-autosuggestions is already added to our the zshrc file in this repo.
The installation instructions aren't explicit enough. This is what worked for me, based on autosuggestions:
git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
When launching oh-my-zsh you may get warnings like this:
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxr-xr-x 3 blind-admin staff 96 Sep 10 13:53 /usr/local/share/zsh
drwxr-xr-x 3 blind-admin staff 96 Sep 10 14:16 /usr/local/share/zsh/site-functions
lrwxr-xr-x 1 blind-admin staff 39 Sep 10 14:16 /usr/local/share/zsh/site-functions/_brew -> ../../../Homebrew/completions/zsh/_brew
The easiest way to solve this is to change the ownership of that zsh directory to be the non-admin user:
compaudit # get list of directories - the following commands assume these all fall under /usr/local/share/zsh
su blind-admin
sudo chown -R blind:staff /usr/local/share/zsh
sudo chmod -R 755 /usr/local/share/zsh