initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
*.swp
|
||||
.DS_Store
|
||||
home/.vim/plugged
|
||||
@@ -0,0 +1,4 @@
|
||||
This repository contains the basic setup for how I like to configure my command line. It contains my shell setup,
|
||||
editor settings, and other odds and ends. In order to get a new machine up and running, simply clone this repository
|
||||
onto the machine and run the included `install.sh` script. It will check for missing software and install it, and it
|
||||
will install its own versions of various important configuration files (e.g., `.profile`, `.vimrc`, etc.).
|
||||
@@ -0,0 +1,5 @@
|
||||
[user]
|
||||
name = Andrew Miner
|
||||
email = [email protected]
|
||||
[push]
|
||||
default = simple
|
||||
@@ -0,0 +1,3 @@
|
||||
:set lines=81
|
||||
:set columns=156
|
||||
:set guifont=Source\ Code\ Pro:h13
|
||||
@@ -0,0 +1,22 @@
|
||||
export EDITOR=vi
|
||||
export PS1='[\h:\w]\$ '
|
||||
export PATH=~/bin:~/node_modules/.bin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH
|
||||
export RAILS_ENV='development'
|
||||
|
||||
alias l='ls -Ghl'
|
||||
alias la='ls -aGhl'
|
||||
|
||||
function count {
|
||||
find . -name "*.$1" | grep -v "node_modules" | xargs cat | grep -v '^$' | grep -v '^#' | wc -l
|
||||
}
|
||||
|
||||
ssh-add ~/.ssh/id_rsa_andrewminer &>/dev/null
|
||||
|
||||
eval "$(rbenv init -)"
|
||||
|
||||
|
||||
### Added by the Heroku Toolbelt
|
||||
export PATH="/usr/local/heroku/bin:$PATH"
|
||||
|
||||
defaults write com.macromates.TextMate.preview volumeSettings '{ "/" = { extendedAttributes = 0; }; }'
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+58
@@ -0,0 +1,58 @@
|
||||
" Install Plugins ######################################################################################################
|
||||
|
||||
call plug#begin('~/.vim/plugged')
|
||||
|
||||
Plug 'ctrlpvim/ctrlp.vim'
|
||||
Plug 'elzr/vim-json'
|
||||
Plug 'flazz/vim-colorschemes'
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'kchmck/vim-coffee-script'
|
||||
Plug 'nathanaelkane/vim-indent-guides'
|
||||
Plug 'plasticboy/vim-markdown'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" Execute Basic Setup Commands #########################################################################################
|
||||
|
||||
:colorscheme obsidian
|
||||
:filetype plugin indent on
|
||||
:hi ColorColumn ctermbg=8
|
||||
:syntax on
|
||||
|
||||
" Configure Settings ###################################################################################################
|
||||
|
||||
:set autoindent
|
||||
:set autowrite
|
||||
:set autowriteall
|
||||
:set background=dark
|
||||
:set backspace=indent,eol,start
|
||||
:set cmdheight=2
|
||||
:set colorcolumn=120
|
||||
:set expandtab
|
||||
:set hlsearch
|
||||
:set incsearch
|
||||
:set laststatus=2
|
||||
:set modelines=2
|
||||
:set number
|
||||
:set path=**
|
||||
:set ruler
|
||||
:set scrolloff=5
|
||||
:set shiftwidth=4
|
||||
:set showbreak="+++>"
|
||||
:set showcmd
|
||||
:set showmatch
|
||||
:set smarttab
|
||||
:set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
|
||||
:set tabstop=4
|
||||
:set textwidth=0
|
||||
:set virtualedit=block
|
||||
:set visualbell
|
||||
:set wildmode=longest,list
|
||||
:set nowrap
|
||||
|
||||
" Configure Plugins ####################################################################################################
|
||||
|
||||
:let g:vim_json_syntax_conceal = 0
|
||||
:let g:indent_guides_enable_on_vim_startup = 0 " :IndentGuidesToggle
|
||||
|
||||
Executable
+48
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "$0" != "./install.sh" ]]; then
|
||||
echo "Please run $0 from its own directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CONFIG_DIR=$PWD
|
||||
|
||||
if ! which -s brew; then
|
||||
echo "Brew is not installed. Installing now..."
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
fi
|
||||
|
||||
pushd $HOME >/dev/null
|
||||
|
||||
echo "Installing standard config files..."
|
||||
|
||||
for FILE in $(ls -A "$CONFIG_DIR/home"); do
|
||||
[[ -e "$FILE" ]] && rm -rf "$FILE"
|
||||
ln -s "$CONFIG_DIR/home/$FILE" "$FILE"
|
||||
done
|
||||
|
||||
echo "Updating brew, one moment..."
|
||||
brew update
|
||||
|
||||
echo "Installing standard brew packages..."
|
||||
brew install fswatch
|
||||
brew install macvim
|
||||
brew install node
|
||||
brew install rbenv
|
||||
brew install watch
|
||||
brew install wget
|
||||
|
||||
echo "Installing standard NPM packages..."
|
||||
npm install -g browserify
|
||||
npm install -g coffee-script
|
||||
npm install -g grunt-cli
|
||||
npm install -g node-sass
|
||||
npm install -g nodemon
|
||||
npm install -g pug-cli
|
||||
|
||||
read -p "Installing vi plugins, type \":qall\" when finished..."
|
||||
vi -c ":PlugInstall"
|
||||
|
||||
popd >/dev/null
|
||||
echo "Done."
|
||||
echo
|
||||
Reference in New Issue
Block a user