Last active
December 16, 2015 07:18
-
-
Save visnup/5397508 to your computer and use it in GitHub Desktop.
dotfiles .profile .gitconfig
This file contains hidden or 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
install: --no-rdoc |
This file contains hidden or 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 = Visnu Pitiyanuvath | |
email = [email protected] | |
[color] | |
ui = auto | |
[color "branch"] | |
current = blue ul | |
local = blue | |
[color "diff"] | |
meta = black bold | |
frag = blue | |
old = red | |
new = green | |
whitespace = red reverse | |
[color "status"] | |
untracked = red ul | |
[push] | |
default = current | |
[branch] | |
autosetuprebase = always | |
[alias] | |
br = branch | |
ci = commit --verbose | |
co = checkout | |
d = diff --ignore-space-change | |
fgr = grep --heading --line-number --break --fixed-strings | |
fgrep = grep --fixed-strings | |
gr = grep --heading --line-number --break | |
ic = commit --verbose | |
l = log --decorate | |
oc = checkout | |
pr = pull-request --browse | |
pul = pull | |
root = rev-parse --show-toplevel | |
st = status --short --branch | |
tree = log --graph --decorate --pretty=oneline --abbrev-commit | |
[github] | |
user = visnup | |
password = !security 2>&1 >/dev/null find-internet-password -gs github.com | ruby -e 'print $1 if STDIN.gets =~ /^password: \"(.*)\"$/' | |
[core] | |
editor = vim | |
[credential] | |
helper = osxkeychain | |
[merge] | |
tool = gvimdiff | |
defaultToUpstream = true | |
[help] | |
autocorrect = 1 |
This file contains hidden or 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=/usr/local/bin:/usr/local/sbin:/usr/local/share/npm/bin:$PATH | |
# shared bash history | |
export CLICOLOR=1 | |
export HISTCONTROL=ignoredups:erasedups | |
export HISTSIZE=100000 | |
export HISTFILESIZE=$HISTSIZE | |
shopt -s cdspell histappend nocaseglob | |
# program args | |
export LESS='--RAW-CONTROL-CHARS --ignore-case --line-numbers --no-init' | |
export ACK_PAGER=less | |
export GREP_OPTIONS=--color | |
# vi 4eva | |
export EDITOR=vim | |
export VISUAL=vim | |
# node | |
export NODE_PATH=/usr/local/lib/node:/usr/local/lib/node_modules | |
# ruby | |
if which rbenv > /dev/null; then | |
eval "$(rbenv init -)" | |
export BUNDLER_EDITOR=mvim | |
fi | |
# prompt | |
. $HOME/Play/gists/prompt/termwide.sh | |
# z | |
. `brew --prefix`/etc/profile.d/z.sh | |
# more shared bash history | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r" | |
# OSX | |
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM" | |
# bash completion | |
. /usr/local/etc/bash_completion.d/git-completion.bash | |
. /usr/local/etc/bash_completion.d/hub.bash_completion.sh | |
# aliases | |
alias ll='ls -lh' | |
alias git='hub' | |
alias gti='hub' | |
alias cd.='cd $(git root)' | |
function mdfind.() { | |
mdfind -onlyin . $@ | sed "s#${PWD}#.#" | xargs grep $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment