Last active
February 7, 2019 11:51
-
-
Save chicken-suop/4511f17ac4d9d46977d86d0744a89c04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Elliot Schep | |
email = **** | |
[core] | |
excludesfile = ~/.gitignore | |
pager = diff-so-fancy | less --tabs=1,5 -R | |
editor = /usr/bin/atom | |
[credential] | |
helper = osxkeychain | |
[alias] | |
permission-reset = !git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply | |
wow = log --all --graph --decorate --oneline --simplify-by-decoration | |
[filter "lfs"] | |
required = true | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
process = git-lfs filter-process | |
[color] | |
ui = always | |
[color "diff"] | |
meta = yellow bold | |
commit = green bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "diff-highlight"] | |
oldNormal = red bold | |
oldHighlight = "red bold 52" | |
newNormal = "green bold" | |
newHighlight = "green bold 22" | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* | |
# Files that might appear in the root of a volume | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems | |
.Trashes | |
.VolumeIcon.icns | |
.com.apple.timemachine.donotpresent | |
# Directories potentially created on remote AFP share | |
.AppleDB | |
.AppleDesktop | |
Network Trash Folder | |
Temporary Items | |
.apdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$HOME/bin:/usr/local/bin:/usr/local/share/python:$PATH | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="wezm" | |
# Why would you type 'cd dir' if you could just type 'dir'? | |
setopt AUTO_CD | |
# Which plugins would you like to load? | |
plugins=( | |
colored-man-pages | |
python | |
git | |
tig | |
docker | |
docker-compose | |
golang | |
pip | |
history | |
history-substring-search | |
httpie | |
sudo | |
vagrant | |
postgres | |
osx | |
lein | |
node | |
npm | |
jump | |
gulp | |
mosh | |
k | |
z | |
alias-tips | |
zsh-completions | |
almostontop | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
) | |
# source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# fpath=(/usr/local/share/zsh-completions $fpath) | |
# source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh | |
# source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh | |
source $ZSH/oh-my-zsh.sh | |
## ALIAS | |
alias ez="atom ~/.zshrc" | |
alias c="clear" | |
alias dpsa="docker ps -a" | |
alias dcup="docker-compose up" | |
alias dcupd="docker-compose up -d" | |
## GIT | |
GIT_AUTHOR_NAME="Elliot Schep" | |
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" | |
git config --global user.name "$GIT_AUTHOR_NAME" | |
GIT_AUTHOR_EMAIL="elliot.schep@gmail.com" | |
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" | |
git config --global user.email "$GIT_AUTHOR_EMAIL" | |
git config --global core.editor "/usr/bin/atom" | |
## NVM | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
## GOLANG | |
export GOPATH=$HOME/Code/golang | |
# If homebrew installed | |
case `uname` in | |
Darwin) | |
export GOROOT="$(brew --prefix golang)/libexec" | |
;; | |
Linux) | |
export GOROOT="usr/local/go" | |
;; | |
esac | |
export PATH="$GOPATH/bin:$GOROOT/bin:$PATH" | |
# Preferred editor for remote and local sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='nano' | |
else | |
export EDITOR='atom' | |
fi | |
# Make zsh know about hosts already accessed by SSH | |
zstyle -e ':completion:*:(ssh|scp|sftp|rsh|rsync):hosts' hosts 'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) /dev/null)"}%%[# ]*}//,/ })' | |
# [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
# eval "$(pyenv init -)" | |
# export PATH="/usr/local/sbin:$PATH" | |
# eval "$(rbenv init -)" | |
# added by travis gem | |
# [ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo echo "ask for password before all the scripts" | |
# If macos | |
if [ "$(uname)" == "Darwin" ]; then | |
# install homebrew | |
/usr/bin/ruby -e "(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# install oh-my-zsh | |
brew install zsh | |
## Some utils | |
# brew install coreutils findutils wget curl tree tig git socat ssh-copy-id htop mosh rlwrap maven httpie pv | |
# brew tap caskroom/cask | |
## Some apps | |
# brew cask install java visual-studio-code google-chrome docker virtualbox vagrant vagrant-manager the-unarchiver | |
else | |
sudo apt-get install zsh git-core | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
chsh -s `which zsh` | |
# sudo shutdown -r 0 | |
# Get dot files | |
wget -O $HOME/.zshrc https://gist.github.com/ratskin/4511f17ac4d9d46977d86d0744a89c04/raw/3df076550964b3faf0c6070962c092c6ba5eb365/.zshrc | |
wget -O $HOME/.gitconfig https://gist.github.com/ratskin/4511f17ac4d9d46977d86d0744a89c04/raw/63c76f821e3b96baec9c0cb1962abddb1300a362/.gitconfig | |
wget -O $HOME/.gitignore https://gist.github.com/ratskin/4511f17ac4d9d46977d86d0744a89c04/raw/63c76f821e3b96baec9c0cb1962abddb1300a362/.gitignore | |
# install oh-my-zsh plugins | |
git clone https://github.com/djui/alias-tips.git $HOME/.oh-my-zsh/custom/plugins/alias-tips | |
git clone https://github.com/supercrabtree/k $HOME/.oh-my-zsh/custom/plugins/k | |
git clone https://github.com/rupa/z $HOME/.oh-my-zsh/custom/plugins/z | |
git clone https://github.com/Valiev/almostontop.git $HOME/.oh-my-zsh/custom/plugins/almostontop | |
git clone https://github.com/zsh-users/zsh-completions $HOME/.oh-my-zsh/custom/plugins/zsh-completions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | |
git clone https://github.com/zsh-users/zsh-autosuggestions $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions | |
# setup dev env | |
mkdir -p $HOME/Code | |
# node.js | |
# git clone https://github.com/tj/n.git $HOME/Code/n | |
# cd $HOME/Code/n && make install | |
# sudo chown -R $USER /usr/local # Not secure if on a server | |
# n lts | |
# pure prompt & other goodies | |
npm install -g pure-prompt browser-sync eslint diff-so-fancy ntl ghwd | |
## MAC CLI | |
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)" | |
## FONTS | |
# brew tap caskroom/fonts | |
# brew cask install font-fira-code | |
# git clone https://github.com/powerline/fonts.git $HOME/Code/fonts | |
# cd $HOME/Code/fonts && ./install.sh | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment