Giter Site home page Giter Site logo

dotfiles's Introduction

MacOS zsh dotfiles

Config Files

Screenshots

Prompt

Screenshot

Screenshot

Vim

Vim Screenshot

Installation and Setup

1. Clone This Repo To Your Home Directory

git clone https://github.com/natesammons/dotfiles.git ~/.dotfiles

2. Install Homebrew

Follow the instructions at https://brew.sh/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Brew Packages

bash ~/.dotfiles/brew_install.sh

Fix zsh-completions permissions

Fix for the following error with zsh completions:

zsh compinit: insecure directories, run compaudit for list.
# Ignore insecure directories and continue [y] or abort compinit [n]?

Run the following (inside zsh):

zsh
compaudit | xargs chmod g-w

See this stackexchange.com thread for details.

3. Setup iTerm Font

Above we installed the FiraCode NerdFont and Meslo LG NerdFont using brew. Another good one is the nerd font patched SFMono.

Select one of these in iTerm as your font.

4. Make zsh your default shell

Update Available Shells

Edit /etc/shells to add zsh from brew. Add the following lines:

# from brew
/usr/local/bin/zsh

Change default shell for your user

chsh -s /usr/local/bin/zsh

Without this you will use the old version of zsh that ships with MacOS.

5. Install oh-my-zsh for zsh

Follow the instructions at https://ohmyz.sh/

https://github.com/robbyrussell/oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

This will nuke your .zshrc so don’t make changes before installing it. Run through the wizard and select the defaults.

Install the powerlevel10k theme

https://github.com/romkatv/powerlevel10k

git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k

Powerlevel10K is a Powerlevel9k re-implementation that is a lot faster.

6. Install Vundle plugin for vim

https://github.com/VundleVim/Vundle.vim

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

7. Symlink .zshrc and .vimrc to this repo

Replaces these files in your home dir with symlinks to these files.

zsh ~/.dotfiles/init.sh

8. Run vim to initialize newly-configured plugins

Run vim to install plugins:

vim +PluginInstall +qall

9. Launch a new terminal

It should look like the screenshot above

10. Customize

The .zshrc config sources files named *.sh in each of the following directories after setting everything else:

  1. ~/.zsh.d
  2. ~/.zsh.d.$USER
  3. ~/.zsh.d.$(hostname -s)

Files in each of these directories are run in alphabetic order (using sort on filenames)

11. Updates

Update everything by running the following commands:

zsh ~/.dotfiles/update.sh

dotfiles's People

Contributors

natesammons avatar natesammons-ndaq avatar natesammons-br avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.