Skip to content

Instantly share code, notes, and snippets.

View drewknab's full-sized avatar
🤔

Drew Knab drewknab

🤔
View GitHub Profile
set backspace=indent,eol,start
set expandtab
set laststatus=2
set noerrorbells
set nowrap
set noswapfile
set number
set ruler
set softtabstop=4
set shiftround
@drewknab
drewknab / init.vim
Created September 25, 2021 04:37
nvim config
" Plugins will be downloaded under the specified directory.
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
" Declare the list of plugins.
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-vinegar'
Plug 'junegunn/seoul256.vim'
Plug 'flazz/vim-colorschemes'
Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
@drewknab
drewknab / .bashrc
Last active February 9, 2019 17:01
.bashrc requires bash > 4.1
function parse_git_branch() {
git=""
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
STR=$'\u251c'
STR+=$'\u2574'
STR+="$cyan${BRANCH}${STAT}"