Skip to content

Instantly share code, notes, and snippets.

View nabrahamson's full-sized avatar

Noah Abrahamson nabrahamson

View GitHub Profile
@nabrahamson
nabrahamson / prompt.bash
Last active July 22, 2021 11:57 — forked from moshen/prompt.bash
A Fancy Bash Prompt
#!/bin/bash
#
# Fancy prompt
#
# Source this file in your .bashrc
#
# Configuration options:
#
# Set _prompt_config to an array of strings. Each string is in the
#!/bin/bash
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
export _sys
_sys=$(uname -s)
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
" Set up python
let g:python_host_prog='/usr/bin/python'
call plug#begin()
#!/usr/bin/python
import argparse
def generate_argparser():
parser = argparse.ArgumentParser()
parser.add_argument('filename', type=str,
help="the name of the file to be split")
parser.add_argument('criteria', nargs='+', type=str,
help='a list of space delinated strings to split the file')
parser.add_argument('-b', '--blank', help='Split file on blank lines', action='store_true')