Skip to content

Commit

Permalink
add my zshrc and gitconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Thomson committed Aug 17, 2012
1 parent 101c957 commit 89f53a9
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitconfig
@@ -0,0 +1,31 @@
[user]
name = Patrick Thomson
[core]
trustctime = false
excludesfile = /Users/patrickthomson/.gitignore
ignorecase = true
[gc]
auto = 0
[diff]
tool = araxis
renames = copies
mnemonicprefix = true

[merge]
tool = araxis
[grep]
lineNumber = true
[alias]
st = status
co = checkout
br = branch
reup = rebase @{u}
[rerere]
enabled = 1
[branch]
autosetupmerge = true
autosetuprebase = always
[advice]
statusHints = false
[interactive]
singlekey = true
44 changes: 44 additions & 0 deletions .zshrc
@@ -0,0 +1,44 @@
# Append to a history file (~/.zhistory)
setopt appendhistory
# Auto-cd to directories if the only input provided is a directory.
setopt autocd
# Auto-expand substitution strings in the prompt
setopt prompt_subst
# Enable auto push/pop tracking, a la a browser
setopt auto_pushd

# Set up the vcs_info module to work with git, svn, and git-svn
zstyle ':vcs_info:*' stagedstr '%F{28}●'
zstyle ':vcs_info:*' unstagedstr '%F{11}●'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' enable git svn

# Load VCS info
autoload -Uz vcs_info

PROMPT='%F{blue}${vcs_info_msg_0_}%F{blue}%(?/%F{blue}/%F{red})% %F{white}%% '
export RPS1="(%~)"
export EDITOR="subl -w"

alias g="git"
alias o="open"
alias pbpatch="pbpaste | patch"
alias kx="killall -KILL Xcode"

export CLICOLOR=1

precmd() {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
zstyle ':vcs_info:*' formats ' [%F{green}%b%c%u%F{blue}] '
} else {
zstyle ':vcs_info:*' formats ' [%F{green}%b%c%u%F{red}●%F{blue}] '
}
vcs_info
print -Pn "\e]0;$PWD\a";
}

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin

HISTFILE=~/.zhistory
HISTSIZE=1000
SAVEHIST=1000

0 comments on commit 89f53a9

Please sign in to comment.