Skip to content

Commit

Permalink
pretty git log format
Browse files Browse the repository at this point in the history
  • Loading branch information
luthes committed Mar 14, 2018
1 parent 09c995a commit b0ec574
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ alias mprreport='ssh oldprod-edge './mpr_report.sh''
alias gitdiff="git diff $(git log | head -n1 | awk '{ print $2 }')^!"
alias print="lp -d 10.195.51.15"

git() {
if [[ $@ == "log" ]]; then
command git log --graph --pretty=format:'%h - %an -%d %s (%cr)' | vim -R -c 'set filetype=git nowrap' -
else
command git "$@"
fi
}

export ORACLE_HOME=$HOME/Applications/instantclient_12_1/
export DYLD_LIBRARY_PATH=$ORACLE_HOME:$DYLD_LIBRARY_PATH
export ORACLE_HOME=$HOME/Applications/instantclient_12_1
Expand Down
5 changes: 5 additions & 0 deletions install_dotfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def check_packages():

# Mac
# Check for Brew
# TODO: This doesn't really do anything right now.
# If Brew is not installed, we should first install it and then check
# dependent repos, ie git, vim, tmux, additionally install iterm.
if os == "darwin":
command = "which brew"
print("MacOS detected")
Expand Down Expand Up @@ -80,6 +83,7 @@ def check_packages():

#Linux
#Check for apt/yum
# TODO: This should check for RH/CentOS systems with Yum package manager
if os == "linux" or os == "linux2":
apt_package = check_package("apt")
git_package = check_package("git")
Expand Down Expand Up @@ -157,6 +161,7 @@ def install_vim_plugins(home_dir):

def main():
#Expand Home Directory
# We should check if system is Mac or Linux, and then branch from there.
home_dir = os.path.expanduser('~')
command = "vim +PluginInstall +qall"
check_packages()
Expand Down

0 comments on commit b0ec574

Please sign in to comment.