# HG changeset patch # User zegervdv # Date 1393177932 -3600 # Node ID d35280c9b02358a89f6c1b3ed4c64fccc146990b # Parent 8975f7375c417f047ea5ba9da83c3c1381c8b466 Add custom CLI tools diff -r 8975f7375c41 -r d35280c9b023 bin/git-conflict --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/git-conflict Sun Feb 23 18:52:12 2014 +0100 @@ -0,0 +1,24 @@ +#!/usr/bin/env perl +# Find conflict markers in files +# 2013, Zeger Van de Vannet + +use Term::ANSIColor; + +my $files = `git ls-files`; + +my @files = split "\n", $files; + +for $file (@files) { + open FILE, "$file" or die $!; + my @lines = ; + for $i (keys @lines) { + if ($lines[$i] =~ /\<{2,}/) { + $linenr = $i + 1; + print color("blue"), "$file", color("reset"); + print ":"; + print color("yellow"), "$linenr ", color("reset"); + print "$lines[$i]"; + } + } + close FILE; +} diff -r 8975f7375c41 -r d35280c9b023 bin/mkreport --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/mkreport Sun Feb 23 18:52:12 2014 +0100 @@ -0,0 +1,5 @@ +#!/bin/sh +# Create a new latex report from template + +cp $HOME/.templates/report.tex . +echo "Created report.tex" diff -r 8975f7375c41 -r d35280c9b023 zshrc --- a/zshrc Sun Feb 23 18:18:15 2014 +0100 +++ b/zshrc Sun Feb 23 18:52:12 2014 +0100 @@ -44,6 +44,7 @@ export PATH="$(brew --prefix ruby)/bin:$PATH" export NODE_PATH="/usr/local/lib/node" export PATH="/usr/local/share/npm/bin:$PATH" +export PATH=$PATH:$HOME/.bin eval "$(rbenv init -)"