Skip to content

Commit

Permalink
Merge pull request #23 from VEBERArnaud/feat/install-hub-and-alias-it
Browse files Browse the repository at this point in the history
feat(git): install hub and alias it
  • Loading branch information
VEBERArnaud authored Aug 1, 2016
2 parents fccd7ce + 0b5c090 commit 67626ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ alias ri='ri -f ansi'
which colordiff &>/dev/null && alias diff='colordiff'

# Git
alias gst='git status'
alias ga='git add --patch'
alias gd='git diff'
alias glglm='git log --before=$(date "+%Y-%m-01") --after=$(date -d"1 month ago" "+%Y-%m-01") --author="$(git config user.name)" --reverse --pretty=format:"%cd - %h - %s" --date=short --no-merges'
alias glgcm='git log --before=$(date -d"+ 1 month" "+%Y-%m-01") --after=$(date "+%Y-%m-01") --author="$(git config user.name)" --reverse --pretty=format:"%cd - %h - %s" --date=short'
alias glgt='git log --since="yesterday" --author="$(git config user.name)" --pretty=format:"%cd - %h - %s" --date=short --no-merges'
alias g='hub'
alias gst='hub status'
alias ga='hub add --patch'
alias gd='hub diff'
alias glglm='hub log --before=$(date "+%Y-%m-01") --after=$(date -d"1 month ago" "+%Y-%m-01") --author="$(hub config user.name)" --reverse --pretty=format:"%cd - %h - %s" --date=short --no-merges'
alias glgcm='hub log --before=$(date -d"+ 1 month" "+%Y-%m-01") --after=$(date "+%Y-%m-01") --author="$(hub config user.name)" --reverse --pretty=format:"%cd - %h - %s" --date=short'
alias glgt='hub log --since="yesterday" --author="$(hub config user.name)" --pretty=format:"%cd - %h - %s" --date=short --no-merges'

# Some aliases to avoid making mistakes
alias rm='rm -i'
Expand Down
1 change: 1 addition & 0 deletions .brew
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ brew install gnu-tar
brew install graphviz
brew install gsl
brew install htop-osx
brew install hub
brew install jq
brew install moreutils
brew install pre-commit
Expand Down
3 changes: 3 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ GCLOUD_SDK=/opt/homebrew-cask/Caskroom/google-cloud-sdk/latest/google-cloud-sdk
[[ -f "${GCLOUD_SDK}/completion.zsh.inc" ]] && \
source "${GCLOUD_SDK}/completion.zsh.inc"

# hub
eval "$(hub alias -s)"

# Aliases
[[ -f ~/.aliases ]] && source ~/.aliases

Expand Down

0 comments on commit 67626ae

Please sign in to comment.