Skip to content

Instantly share code, notes, and snippets.

View anantpatil's full-sized avatar

Anant Patil anantpatil

  • VMware
  • Bangalore
View GitHub Profile
@anantpatil
anantpatil / makecl
Created March 20, 2013 06:09
A script to help create a subversion change-list.
#!/usr/bin/env bash
cl=$1
if [ "$cl" = "" ];then
echo "CL name not specified."
exit 1
fi
svn st |
@anantpatil
anantpatil / svndiff
Created January 31, 2013 08:46
Colored svn diff command. When using a "svn diff", its easy to see the differences based on color instead of based on + or - symbol in the beginning of the line. Usage: $svndiff <file name>
#!/bin/sh
# Output colored text
# Color the contents of working copy green and old copy red.
svn diff $* | sed -e 's/^+/\x1b\[32m+/;s/^-/\x1b[31m-/;s/$/\x1b[0m/';
@anantpatil
anantpatil / showdiffs
Last active December 12, 2015 00:08
A script to cycle through all the modified files in subversion repository to see the diffs in gvim. Tested with subversion 1.6. Depending on the version of subversion, you may need to modify cut command to get the exact file name.
#!/usr/bin/env bash
# Author: Anant Patil (anant.techie@gmail.com)
#
# Make a list of all the modified files in local subversion repository
# in current directory. Cycle throuh all the files and ask if you want
# to see the diff.
#
# Uses svnvimdiff command created by Geoff Buchan which can be found at
# https://github.com/vim-scripts/svnvimdiff/blob/master/svnvimdiff
@anantpatil
anantpatil / tmux.conf
Created April 16, 2012 09:03
My tmux configuration
# Settings courtesy internet
# Bind C-a (Ctrl+a) to default action on tmux
set-option -g prefix C-a
unbind C-b
# Command sequence for nested tmux when running tmux inside another tmux, you
# need to send command to inner tmux
bind-key a send-prefix