Browse Source

Initial commit ↗

Joe Richardson 4 months ago
parent
commit
d42d103c3e
5 changed files with 75 additions and 1 deletions
  1. 18
    1
      README.md
  2. 19
    0
      git/.gitconfig
  3. 5
    0
      setup.sh
  4. 0
    0
      vim/.vimrc
  5. 33
    0
      zsh/.zshrc

+ 18
- 1
README.md View File

@@ -1,2 +1,19 @@
1
-# dotfiles
1
+# 🗄  Dotfiles
2 2
 
3
+A simple and most definitely a WIP colletion of files.
4
+
5
+## Prerequisites ⚠️
6
+
7
+1. [zsh](https://sourabhbajaj.com/mac-setup/iTerm/zsh.html)
8
+2. vim-plug
9
+```bash
10
+curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
11
+    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
12
+```
13
+
14
+## Installation 😏
15
+
16
+1. git clone git@git.jrich.cc:dope/dotfiles.git
17
+2. cd dotfiles
18
+3. source install.sh
19
+4. $$$

+ 19
- 0
git/.gitconfig View File

@@ -0,0 +1,19 @@
1
+[user]
2
+	name = Joe Richardson
3
+	email = joe.rchdsn+github@gmail.com
4
+[color]
5
+  ui = true
6
+[alias]
7
+        pretty = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
8
+        conflicts = diff --name-only --diff-filter=U
9
+        scrum = log --since='1 day ago' --author='Joe Richardson' --oneline
10
+[filter "lfs"]
11
+        clean = git-lfs clean -- %f
12
+        smudge = git-lfs smudge -- %f
13
+        process = git-lfs filter-process
14
+        required = true
15
+[core]
16
+        excludesfile = /Users/jr/.gitignore_global
17
+[difftool "sourcetree"]
18
+        cmd = opendiff \"$LOCAL\" \"$REMOTE\"
19
+        path =

+ 5
- 0
setup.sh View File

@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+
3
+ln -s ~/dotfiles/git/.gitconfig ~/.gitconfig
4
+ln -s ~/dotfiles/zsh/.zshrc ~/.zshrc
5
+ln -s ~/dotfiles/vim/.vimrc ~/.vimrc

+ 0
- 0
vim/.vimrc View File


+ 33
- 0
zsh/.zshrc View File

@@ -0,0 +1,33 @@
1
+# Paths
2
+export ZSH=/Users/jr/.oh-my-zsh
3
+export EDITOR="/usr/bin/vim"
4
+export PATH="$PATH:$HOME/.rvm/bin"
5
+
6
+source $ZSH/oh-my-zsh.sh
7
+source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
8
+
9
+# Load zgen
10
+source "${HOME}/.zgen/zgen.zsh"
11
+
12
+# Load theme
13
+zgen load subnixr/minimal
14
+
15
+# Misc Aliases
16
+alias composer="php /usr/local/bin/composer.phar"
17
+alias randomString="openssl rand -base64 8"
18
+alias kill3000="sudo lsof -i tcp:3000"
19
+alias kill4000="sudo lsof -i tcp:4000"
20
+
21
+# Git Aliases
22
+alias g='git'
23
+alias gs='git status'
24
+alias gc='git commit -m'
25
+alias gca='git commit -am'
26
+alias ga='git add'
27
+alias gaa='git add .'
28
+
29
+# Enable Autocomplete
30
+autoload -U compinit
31
+compinit
32
+
33
+[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh