os x tweaks
This commit is contained in:
parent
e737144a57
commit
2b6001e75c
25
.bashrc
25
.bashrc
@ -6,6 +6,12 @@ awsAutocomplete=$(which aws_completer)
|
|||||||
if [ -n "${awsAutocomplete}" ]; then
|
if [ -n "${awsAutocomplete}" ]; then
|
||||||
complete -C "${awsAutocomplete}" aws
|
complete -C "${awsAutocomplete}" aws
|
||||||
fi
|
fi
|
||||||
|
if [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
|
||||||
|
source /usr/local/etc/bash_completion.d/git-completion.bash
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then
|
||||||
|
source /usr/local/etc/bash_completion.d/git-prompt.sh
|
||||||
|
fi
|
||||||
|
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
||||||
@ -31,14 +37,21 @@ else
|
|||||||
PS1="$GREEN\u@\h$RESET:$BLUE\w$RESET "
|
PS1="$GREEN\u@\h$RESET:$BLUE\w$RESET "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
colorOption="--color=auto"
|
||||||
alias grep='grep --color=auto'
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
alias egrep='egrep --color=auto'
|
colorOption=-G
|
||||||
alias fgrep='fgrep --color=auto'
|
fi
|
||||||
|
|
||||||
|
alias ls="ls ${colorOption}"
|
||||||
|
alias grep="grep --color-auto"
|
||||||
|
alias egrep="egrep --color=auto"
|
||||||
|
alias fgrep="fgrep --color=auto"
|
||||||
|
|
||||||
# override for Debian's new idiotic quoting style in ls
|
# override for Debian's new idiotic quoting style in ls
|
||||||
export QUOTING_STYLE=literal
|
export QUOTING_STYLE=literal
|
||||||
|
|
||||||
# override executable directories weird blue on green color scheme
|
# override executable directories weird blue on green color scheme
|
||||||
eval "$(dircolors)"
|
if which dircolors 2>&1 /dev/null; then
|
||||||
export LS_COLORS="${LS_COLORS}:ow=1;4;33"
|
eval "$(dircolors)"
|
||||||
|
export LS_COLORS="${LS_COLORS}:ow=1;4;33"
|
||||||
|
fi
|
||||||
|
23
.gitconfig-mac
Normal file
23
.gitconfig-mac
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[user]
|
||||||
|
name = tmont
|
||||||
|
email = tommy.mont@gmail.com
|
||||||
|
[color]
|
||||||
|
ui = true
|
||||||
|
[alias]
|
||||||
|
stat = status -sb
|
||||||
|
lg = log --graph --pretty=format:'%Cred%h%Creset %Cgreen%cr%Creset %Cblue%an%Creset%C(yellow)%d%Creset %s'
|
||||||
|
releases = !git log --date=local --decorate=full --all --pretty=format:'%Cgreen%ai%Creset\t%Cred%h%Creset\t%Cblue%cn%Creset\t%d\t%s' --abbrev-commit | grep -E 'release:? v?\\d+\\.\\d+\\.\\d+(:| -)' | perl -p -e 's%\\(.*?tag: .+?\\)\\s*release(:\\s*)?%%' | sort -i
|
||||||
|
release-count = !git releases | cut -f 3 | sort | uniq -c | sort -n -r
|
||||||
|
old-branches = for-each-ref refs/remotes/origin/ --sort=committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:blue)%(authorname)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'
|
||||||
|
hidiff = "!f() { [ \"$GIT_PREFIX\" != \"\" ] && cd "$GIT_PREFIX"; git diff --color $@ | diff-so-fancy | less --tabs=4 -RFX; }; f"
|
||||||
|
[push]
|
||||||
|
default = upstream
|
||||||
|
[core]
|
||||||
|
pager = less -x4
|
||||||
|
autocrlf = false
|
||||||
|
safecrlf = false
|
||||||
|
[merge]
|
||||||
|
tool = diffmerge
|
||||||
|
[mergetool "diffmerge"]
|
||||||
|
trustExitCode = true
|
||||||
|
cmd = /usr/local/bin/diffmerge --merge --result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
|
Loading…
Reference in New Issue
Block a user