From d53892fb6dede94811d356807f2ec3b1a7317c01 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 17 Sep 2016 10:16:14 -0400 Subject: [PATCH] Git config --- .zshrc | 4 +++- macos.sh | 26 +++++++++++++++++++------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.zshrc b/.zshrc index 99d63f4..640b7ad 100644 --- a/.zshrc +++ b/.zshrc @@ -6,8 +6,10 @@ plugins=(osx git) source $ZSH/oh-my-zsh.sh -# command line tools +# Use Homebrew bin before defaults +export PATH="/usr/local/bin:$PATH" +# command line tools alias fuck='$(thefuck $(fc -ln -1))' alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" diff --git a/macos.sh b/macos.sh index 61af60a..94bf0d2 100755 --- a/macos.sh +++ b/macos.sh @@ -149,9 +149,28 @@ defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true # Safari: Set downloads folder to Desktop defaults write com.apple.Safari DownloadsPath -string "$HOME/Desktop/" +# Symlink all the things +ln -s $HOME/dotfiles/.hammerspoon $HOME/.hammerspoon +ln -s $HOME/dotfiles/.vim $HOME/.vim +ln -s $HOME/dotfiles/.vimrc $HOME/.vimrc +ln -s $HOME/dotfiles/.zshrc $HOME/.zshrc +ln -s $HOME/dotfiles/shadowfacts.zsh-theme $HOME/.oh-my-zsh/themes/shadowfacts.zsh-theme + # Install Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +# Install git & hub +brew install git +brew install hub + +# Git: Set identity +git config --global user.name "Shadowfacts" +git config --global user.email "me@shadowfacts.net" +# Git: Enable autocrlf +git config --global core.autocrlf input +# Git: Always sign commits +git config --global commit.gpgsign true + # Install zsh brew install zsh @@ -161,13 +180,6 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/mas # Change shell chsh -s /usr/bin/zsh -# Symlink all the things -ln -s $HOME/dotfiles/.hammerspoon $HOME/.hammerspoon -ln -s $HOME/dotfiles/.vim $HOME/.vim -ln -s $HOME/dotfiles/.vimrc $HOME/.vimrc -ln -s $HOME/dotfiles/.zshrc $HOME/.zshrc -ln -s $HOME/dotfiles/shadowfacts.zsh-theme $HOME/.oh-my-zsh/themes/shadowfacts.zsh-theme - source $HOME/.zshrc # Done