Skip to content

These are my custom configurations for bash and zsh

Notifications You must be signed in to change notification settings

benlind/shell-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Config Files

These are the personal shell config files of Ben Lind. Feel free to fork and improve as you see fit.

Installation

Prerequisites

  1. XCode command line tools (to install, just try to run a git command)
  2. Homebrew
  3. Zsh
  4. Oh My Zsh (you can use the manual installation if there are firewall issues)

Installation

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

ZSH Theme

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.

Install zsh-autosuggestions

Installation instructions. Specifically you need to clone the autosuggestions directory, since zsh-autosuggestions is already added to our the zshrc file in this repo.

Install zsh-syntax-highlighting

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

Insecure warnings

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

About

These are my custom configurations for bash and zsh

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages