Initial commit of dotfiles.

This commit is contained in:
Jeff Geerling
2014-01-10 09:00:46 -06:00
parent 35604dfad4
commit 78625a15b5
4 changed files with 93 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
#
# .bash_profile
#
# @author Jeff Geerling
# @see .inputrc
#
# Nicer prompt.
export PS1=" \D{%I:%M %p}:\w $ "
# Use colors.
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# Custom $PATH with extra locations.
export PATH=/usr/local/bin:/Users/jgeerling/bin:/usr/local/sbin:/usr/local/git/bin:/Developer/Eclipse/android-sdk-macosx/platform-tools:/Developer/Eclipse/android-sdk-macosx/tools:$PATH
# Flush DNS cache (See: http://support.apple.com/kb/ht5343).
alias flush-dns='sudo killall -HUP mDNSResponder'
# Include alias files for easier ssh and remote connections (private).
source ~/.bash_aliases
# Route local traffic over ethernet when using certain WiFi networks w/o proxy.
function net_route() {
sudo route add -net 10.0.0.0/8 -interface en3
}
# Git aliases.
alias gs='git status'
alias gc='git commit'
alias gcam='git commit -am'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
# Turn on Git autocomplete.
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
+1
View File
@@ -0,0 +1 @@
*.DS_Store
+6
View File
@@ -0,0 +1,6 @@
# Allow up/down autocompletion of commands from bash history.
# From: coderwall.com/p/oqtj8w
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
+48
View File
@@ -0,0 +1,48 @@
syntax on " enable syntax highlighting
set cursorline " highlight the current line
" set background=dark " darker color scheme
" set ruler " show line number in bar
set nobackup " don't create pointless backup files; Use VCS instead
set autoread " watch for file changes
set number " show line numbers
set showcmd " show selection metadata (like selected character count)
set showmode " show INSERT, VISUAL, etc. mode
set showmatch " show matching brackets
set autoindent smartindent " auto/smart indent
set smarttab " better backspace and tab functionality
set scrolloff=5 " show at least 5 lines above/below
filetype on " enable filetype detection
filetype indent on " enable filetype-specific indenting
filetype plugin on " enable filetype-specific plugins
colorscheme cobalt " requires cobalt.vim to be in ~/.vim/colors
" tabs and indenting
set autoindent " auto indenting
set smartindent " smart indenting
set expandtab " spaces instead of tabs
set tabstop=2 " 2 spaces for tabs
set shiftwidth=2 " 2 spaces for indentation
" bells
set noerrorbells " turn off audio bell
set visualbell " but leave on a visual bell
" search
set hlsearch " highlighted search results
set showmatch " show matching bracket
" other
set guioptions=aAace " don't show scrollbar in MacVim
call pathogen#infect() " use pathogen
" clipboard
set clipboard=unnamed " allow yy, etc. to interact with OS X clipboard
" shortcuts
map <F2> :NERDTreeToggle<CR>
" remapped keys
inoremap { {}<Left>
inoremap {<CR> {<CR>}<Esc>O
inoremap {{ {
inoremap {} {}