From 93ebad080225de4b0967b218ba4d701d3760e07b Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 12 Jan 2016 09:13:41 -0500 Subject: [PATCH 1/4] Update default git logging --- aliases | 2 +- gitconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index 9a5d843..5dee7d1 100644 --- a/aliases +++ b/aliases @@ -37,7 +37,7 @@ alias gdss="git diff --shortstat" alias gfa="git-date-added" alias gfl="git log --patch" alias gi="gitignore-io" -alias gl="git log" +alias gl="git lol" alias gh="git hist" alias ghd="git hist-details" alias ght="git hist-tags" diff --git a/gitconfig b/gitconfig index 665916d..633793d 100644 --- a/gitconfig +++ b/gitconfig @@ -10,6 +10,7 @@ hist = log --graph --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative hist-details = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat hist-tags = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative + lol = log --graph --decorate --pretty=oneline --abbrev-commit most-recent-by-branch = for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' [color] ui = auto From e586f1661f185ed6bdde577948dbe9b346bf7426 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 28 Jan 2016 11:03:53 -0500 Subject: [PATCH 2/4] Remove gitgutter fixes --- vimrc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/vimrc b/vimrc index 8cd46b6..642e13b 100644 --- a/vimrc +++ b/vimrc @@ -252,12 +252,6 @@ function! SetColors() highlight ColorColumn ctermbg=234 highlight IndentGuidesOdd ctermbg=black highlight IndentGuidesEven ctermbg=234 - " fix for vimgutter - highlight clear SignColumn - highlight GitGutterAdd ctermfg=green - highlight GitGutterChange ctermfg=yellow - highlight GitGutterDelete ctermfg=red - highlight GitGutterChangeDelete ctermfg=yellow endfunction " Needs to come after SetColors definition From 4970bd2ff5b8f15a9969a6cfdd26f52bc93165b8 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 28 Jan 2016 11:06:14 -0500 Subject: [PATCH 3/4] Repos for linux install --- gitignore_global | 0 linux.sh | 8 ++++++++ 2 files changed, 8 insertions(+) mode change 100755 => 100644 gitignore_global create mode 100755 linux.sh diff --git a/gitignore_global b/gitignore_global old mode 100755 new mode 100644 diff --git a/linux.sh b/linux.sh new file mode 100755 index 0000000..0e70038 --- /dev/null +++ b/linux.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if test ! -d ~/.rbenv ; then + git clone https://github.com/rbenv/rbenv.git ~/.rbenv +fi +if test ! -d ~/.rbenv/plugins/ruby-build ; then + git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build +fi From 3740d36994be3b6b37df4bb4ab153e3477acea55 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 5 Feb 2016 13:52:00 -0500 Subject: [PATCH 4/4] Function to repeat a command n times --- functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/functions b/functions index dfa7f54..e0063c4 100644 --- a/functions +++ b/functions @@ -38,3 +38,15 @@ function git-date-added { git log --format=%aD $1 | tail -1 fi } + +function run { + if [ $# -lt 2 ]; then + echo Usage: run NUMBER COMMAND + else + number=$1; shift + + for i in `seq $number`; do + $@ + done + fi +}