Shell Utilities.
ack_and: An ack-grep based utility which finds the set of files that contain all arguments. It could be rewritten to use egrep -r over ack-grep. An example is in order: $ ack foobar -l /home/wizzat/project/file1 /home/wizzat/project/file2 /home/wizzat/project/file3
$ ack foobaz -l
/home/wizzat/project/file2
/home/wizzat/project/file4
/home/wizzat/project/file5
$ ack_and foobar foobaz
/home/wizzat/project/file2
ack_not: An ack-grep based utility which finds the set of files containing the first argument but not the remaining. It could be rewritten to use egrep -r over ack-grep. An example: $ ack foobar -l /home/wizzat/project/file1 /home/wizzat/project/file2 /home/wizzat/project/file3
$ ack correct_foobar_import -l
/home/wizzat/project/file2
/home/wizzat/project/file3
/home/wizzat/project/file4
$ ack_not foobar correct_foobar_import
/home/wizzat/project/file1
add: Adds the numbers in a series of columns. Mostly useful in vim selections.
checkpoints.sh: A series of shell functions which allow you to "tag" certain directories and return to them later. $ ck shell Checkpoint (shell) = /home/wizzat/work/shell
$ ckck
bounce = /home/wizzat
default = /home/wizzat/work/fictional_company/my_current_project
proj = /home/wizzat/work/fictional_company/my_current_project
scripts = /home/wizzat/work/fictional_company/ops/scripts
shell = /home/wizzat/work/shell
$ cd && pwd
/home/wizzat
$ gock shell
Currently in /home/wizzat/work/shell
$ gock proj
Checkpoint (bounce) = /home/wizzat/work/shell
Currently in /home/wizzat/work/fictional_company/my_current_project
$ delck proj
$ ..to work
Currently in /home/wizzat/work
cmptree: Compares two trees for diffs. This is primarily useful in p4 merges.
find_unused_python.sh A shell script for finding unused python functions and dead code.
find_up: Finds a file (such as pom.xml or .ck) in any directory up from you (terminating at /). Example: $ find_up pom.xml /home/wizzat/work/fictional_company/my_current_project/pom.xml
find_up_dir: Finds the directory above you where a certain file exists (such as pom.xml or .ck) $ find_up_dir pom.xml /home/wizzat/work/fictional_company/my_current_project/
findname / fn: Fnids a file in the current project tree. Example: $ fn find /home/wizzat/work/shell/find_unused_python.sh /home/wizzat/work/shell/find_up /home/wizzat/work/shell/find_up_dir /home/wizzat/work/shell/findname
format_sql_block.pl: A utility script I use to format SQL in a certain way. The biggest remaining todo is to detect and align on AS blocks. It integrates into vim with: map ,fs :!~/bin/format_sql_block.pl
rim: A utility wrapper around vim --remote --servername.
tableize.pl: A utility script which I use to tableize certain blocks of code. It integrates into vim with: map ,wt :perldo s/\s+$//g:perldo s/\t/ /g map ,a :!~/work/shell/tableize.pl,wt
See perl_modules for list of perl modules which will need installing.
cdots.sh: A shell utility that I use heavily. It has its own license (GPL).
LICENSE: MIT, except for cdots.sh which has its own license.