Git config
This commit is contained in:
parent
5c36c522d6
commit
d53892fb6d
4
.zshrc
4
.zshrc
|
@ -6,8 +6,10 @@ plugins=(osx git)
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
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 fuck='$(thefuck $(fc -ln -1))'
|
||||||
|
|
||||||
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
|
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
|
||||||
|
|
26
macos.sh
26
macos.sh
|
@ -149,9 +149,28 @@ defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
|
||||||
# Safari: Set downloads folder to Desktop
|
# Safari: Set downloads folder to Desktop
|
||||||
defaults write com.apple.Safari DownloadsPath -string "$HOME/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
|
# Install Homebrew
|
||||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
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
|
# Install zsh
|
||||||
brew install zsh
|
brew install zsh
|
||||||
|
|
||||||
|
@ -161,13 +180,6 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/mas
|
||||||
# Change shell
|
# Change shell
|
||||||
chsh -s /usr/bin/zsh
|
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
|
source $HOME/.zshrc
|
||||||
|
|
||||||
# Done
|
# Done
|
||||||
|
|
Loading…
Reference in New Issue