1. Ben Bass
  2. dotfiles


Ben Bass  committed d58e35e

updates to dotfiles

  • Participants
  • Parent commits e8978ca
  • Branches default

Comments (0)

Files changed (5)

File .bash_aliases

View file
   popd > /dev/null
+# ttmux to be equivalent of screen -R
+alias ttmux="tmux a -d || tmux"

File .hgrc

View file
+username = Ben Bass <benbass@codedstructure.net>
+ssh = ssh -C
+convert =
+hgsubversion =
+highlight =
+hgk =

File .pypirc

View file
+index-servers =
+    pypi
+username: bpb

File .pystartup

View file
+# adapted from http://jasonmbaker.com/pimp-my-interactive-interpreter
+# PYTHONSTARTUP should point to this file to improve your Python
+# interpreter experience...
+import atexit
+import os
+import readline
+import rlcompleter
+histfile = os.path.join(os.environ["HOME"], ".pyhist")
+    readline.read_history_file(histfile)
+except IOError:
+    pass
+readline.parse_and_bind('tab: complete')
+atexit.register(readline.write_history_file, histfile)
+del os, rlcompleter, readline, atexit, histfile

File .vimrc

View file
 cmap <esc>OF <end>
 set gfn=Monospace\ 8
-set t_Co=256
+"set t_Co=256
 set wildmode=longest,list,full
 set wildmenu
 set noswapfile
 set lines=40
 set columns=80
+:nnoremap <F5> :buffers<CR>:buffer<Space>
 set expandtab
 set tabstop=4
 set shiftwidth=4
+set colorcolumn=79
 :map <C-Up> :bn<Return>
 :map <C-Down> :bp<Return>
 filetype plugin indent on
 set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%)]
 " various post-write hooks for quality checking
-au BufWritePost *.py !flake8 --ignore=E501 %
+au BufWritePost *.py !flake8 --ignore=E501 --max-complexity=10 %
 au BufWritePost *.js !jshint %
-" Pathogen load
-filetype off
+" immediately source .vimrc after writing it
+au! BufWritePost .vimrc source %
+" folding support
+set foldmethod=syntax
+set fdn=5
+inoremap <F9> <C-O>za
+nnoremap <F9> za
+onoremap <F9> <C-C>za
+vnoremap <F9> zf
+nnoremap <F10> zR
+nnoremap <F11> zM
 call pathogen#infect()
 call pathogen#helptags()
-filetype plugin indent on
-syntax on
+"solarized support
+" first disable CSApprox
+let g:CSApprox_loaded = 1
+set background=dark
+set t_Co=16
+let g:solarized_termcolors=16
+colorscheme solarized