Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/excid3/dotfiles

My personal dotfiles for macOS: zsh, MacVim, iterm, and more.
https://github.com/excid3/dotfiles

dotfiles shell

Last synced: 21 days ago
JSON representation

My personal dotfiles for macOS: zsh, MacVim, iterm, and more.

Awesome Lists containing this project

README

        

# My Dotfiles

Just [Chris Oliver's](https://twitter.com/excid3) dotfiles. You can copy these in and everything is ready for the races.

## Installation

1. Clone this repo

```
mkdir -p ~/code && cd ~/code && git clone https://github.com/excid3/dotfiles.git
```

2. Install Homebrew

```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```

3. Install MacVim, rbenv, ruby-build, and more

```
brew install macvim rbenv ruby-build postgresql elasticsearch redis zsh
brew install Caskroom/cask/iterm2
brew install Caskroom/cask/google-chrome
```

4. Install Oh-My-ZSH

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

5. Install Janus for Vim

```
curl -L https://bit.ly/janus-bootstrap | bash
```

6. Symlink configs

```
ln -s ~/code/dotfiles/zsh/themes/excid3.zsh-theme ~/.oh-my-zsh/themes/excid3.zsh-theme
ln -s ~/code/dotfiles/zsh/zshrc ~/.zshrc
ln -s ~/code/dotfiles/vim/vimrc ~/.vimrc
ln -s ~/code/dotfiles/psqlrc ~/.psqlrc
ln -s ~/code/dotfiles/gemrc ~/.gemrc

vim +PluginInstall +qall
```

7. Open iTerm and import color scheme from iterm folder

8. diff-so-fancy

```
brew install diff-so-fancy
git config --global color.ui true

git config --global color.diff-highlight.oldNormal "red bold"
git config --global color.diff-highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal "green bold"
git config --global color.diff-highlight.newHighlight "green bold 22"

git config --global color.diff.meta "yellow"
git config --global color.diff.frag "magenta bold"
git config --global color.diff.commit "yellow bold"
git config --global color.diff.old "red bold"
git config --global color.diff.new "green bold"
git config --global color.diff.whitespace "red reverse"
```

# Other tips

Here are some other useful commands I like to use:

#### Pretty ```git lg```

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"

#### Import GPG Keys

Import your GPG keys using https://www.phildev.net/pgp/gpg_moving_keys.html

Then sign all commits with the key:

git config --global commit.gpgsign true