cleanup bootstrap.sh. reorganize gitconfig.

This commit is contained in:
2014-04-14 20:24:52 -07:00
parent bfed868acd
commit 94c3a79793
6 changed files with 44 additions and 46 deletions

View File

@@ -6,6 +6,7 @@ alias go2dotfiles='cd $(dirname `readlink -f ~/.zshrc | xargs dirname`)'
# enables the sudoing of aliases.
alias sudo='sudo '
alias get_absolute_directory=
# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`

View File

@@ -1,15 +1,5 @@
function parse_git_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function git_is_dirty() {
! test -z "$(git status --porcelain)"
}
function current_shell() {
greadlink -f $(which "$(ps -p $$ | tail -1 | awk '{print $NF}' | sed 's/\-//')")
readlink -f $(which "$(ps -p $$ | tail -1 | awk '{print $NF}' | sed 's/\-//')")
}
function is_zsh() {