Skip to content

Instantly share code, notes, and snippets.

View mrshll's full-sized avatar

Marshall mrshll

View GitHub Profile
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
" Autoreload vimrc
autocmd! bufwritepost .vimrc source %
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
let mapleader = ","
noremap ; :
call plug#begin('~/.vim/plugged')
#!/bin/bash
# virtualenv-auto-activate.sh
#
# Installation:
# Add this line to your .bashrc or .bash-profile:
#
# source /path/to/virtualenv-auto-activate.sh
#
# Go to your project folder, run "virtualenv .venv", so your project folder
# has a .venv folder at the top level, next to your version control directory.
@mrshll
mrshll / git-create.sh
Last active December 10, 2015 07:38
alias to create and initialize a new git repository from shell
USER=$(git config --get github.user)
# takes in new repo's name as argument
# ex// $ git-create tufts-hackathon
function git-create () {
git init
touch README.md
curl -u "${USER}" https://api.github.com/user/repos -d '{"name":"'${1}'"}' > /dev/null
git remote add origin git@github.com:${USER}/${1}.git