Git Product home page Git Product logo

shell's Introduction

shell

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.

shell's People

Contributors

wizzat avatar

Watchers

 avatar James Cloos avatar

Forkers

mschober

shell's Issues

gock error message

gock's error message should be more descriptive when the default checkpoint doesn't exist. Potentially add a help message, --help/-h option, and call that when default doesn't exist.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.