diff --git a/dir_colors b/dir_colors new file mode 100644 index 0000000..202664b --- /dev/null +++ b/dir_colors @@ -0,0 +1,107 @@ +# Configuration file for dircolors, a utility to help you set the +# LS_COLORS environment variable used by GNU ls with the --color option. + +# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the +# slackware version of dircolors) are recognized but ignored. + +# Below, there should be one TERM entry for each termtype that is colorizable +TERM linux +TERM linux-c +TERM mach-color +TERM console +TERM con132x25 +TERM con132x30 +TERM con132x43 +TERM con132x60 +TERM con80x25 +TERM con80x28 +TERM con80x30 +TERM con80x43 +TERM con80x50 +TERM con80x60 +TERM xterm +TERM xterm-256color +TERM xterm-color +TERM xterm-debian +TERM rxvt +TERM screen +TERM screen-w +TERM vt100 + +# Below are the color init strings for the basic file types. A color init +# string consists of one or more of the following numeric codes: +# Attribute codes: +# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed +# Text color codes: +# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white +# Background color codes: +# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white +NORMAL 00 # global default, although everything should be something. +FILE 00 # normal file +DIR 00;36 # directory +LINK 00;37 # symbolic link. (If you set this to 'target' instead of a + # numerical value, the color is as for the file pointed to.) +FIFO 40;33 # pipe +SOCK 01;35 # socket +DOOR 01;35 # door +BLK 40;33;01 # block device driver +CHR 40;33;01 # character device driver +ORPHAN 40;31;01 # symlink to nonexistent file + +# This is for files with execute permission: +EXEC 00;35 + +# List any file extensions like '.gz' or '.tar' that you would like ls +# to colorize below. Put the extension, a space, and the color init string. +# (and any comments you want to add after a '#') + +# If you use DOS-style suffixes, you may want to uncomment the following: +#.cmd 01;32 # executables (bright green) +#.exe 01;32 +#.com 01;32 +#.btm 01;32 +#.bat 01;32 + +.tar 01;31 # archives or compressed (bright red) +.tgz 01;31 +.arj 01;31 +.taz 01;31 +.lzh 01;31 +.zip 01;31 +.z 01;31 +.Z 01;31 +.gz 01;31 +.bz2 01;31 +.deb 01;31 +.rpm 01;31 +.jar 01;31 +.dmg 01;31 + +# image formats +.jpg 01;35 +.png 01;35 +.gif 01;35 +.bmp 01;35 +.ppm 01;35 +.tga 01;35 +.xbm 01;35 +.xpm 01;35 +.tif 01;35 +.png 01;35 +.mpg 01;35 +.avi 01;35 +.fli 01;35 +.gl 01;35 +.dl 01;35 + +# source code files +.pl 00;33 +.PL 00;33 +.pm 00;33 +.tt 00;33 +.yml 00;33 +.sql 00;33 +.html 00;33 +.css 00;33 +.js 00;33 + diff --git a/hgignore b/hgignore new file mode 100644 index 0000000..5c3988b --- /dev/null +++ b/hgignore @@ -0,0 +1,43 @@ +syntax: glob + +# Compiled source # +################### +.bundle +*.class +*.o +*.pyc +*.so +.sass-cache + +# Logs and databases # +###################### +*.log +*.sql +*.sqlite +*.sqlite3 + +# OS generated files # +###################### +.DS_Store +Icon? + +# Swap files # +############## +*.swp + +# Backups # +########### +*.orig + +# Repositories # +################ +.hg +.svn + +# Projects # +############ +*.tmproj +*.pbxuser +*.mode1v3 +__MACOSX + diff --git a/hgrc.erb b/hgrc.erb new file mode 100644 index 0000000..cc7a827 --- /dev/null +++ b/hgrc.erb @@ -0,0 +1,25 @@ +[alias] +revert = revert --no-backup + +[ui] +username = <%= print("Your Full Name: "); STDOUT.flush; STDIN.gets.chomp %> <<%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %>> +ignore = ~/.hgignore + +[extensions] +color = +eol = +extdiff = +hgsubversion = ~/hgsubversion/hgsubversion +hggit = +mq = +purge = +rebase = +transplant = + +[extdiff] +cmd.opendiff = opendiff-w + +[merge-tools] +filemerge.executable = opendiff-w +filemerge.args = $local $other -ancestor $base -merge $output + diff --git a/rvmrc b/rvmrc new file mode 100644 index 0000000..3f99f1f --- /dev/null +++ b/rvmrc @@ -0,0 +1 @@ +export rvm_path="/Users/george/.rvm" diff --git a/screenrc b/screenrc new file mode 100644 index 0000000..7af932b --- /dev/null +++ b/screenrc @@ -0,0 +1,76 @@ +# For a complete list of available commands, see http://bit.ly/jLtj + +# Message to display in the status line when activity is detected in a +# monitored window. +activity "activity in %n (%t) [%w:%s]~" + +# Detach session on hangup instead of terminating screen completely. +autodetach on # default: on + +# When a bell character is sent to a background window, screen displays a +# notification in the message line. The notification message can be re-defined +# by this command. +bell_msg "bell in %n (%t) [%w:%s]~" + +# This command controls the display of the window captions. Normally a caption +# is only used if more than one window is shown on the display. +#caption always "%{= kw}%?%-Lw%?%{+b kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?" + +# Select line break behavior for copying. +crlf off # default: off + +# Select default utmp logging behavior. +#deflogin off # default: on + +# Set default lines of scrollback. +defscrollback 10000 # default: 100 + +# If set to 'on', screen will append to the 'hardcopy.n' files created by the +# command hardcopy; otherwise, these files are overwritten each time. +#hardcopy_append on # default: off + +# This command configures the use and emulation of the terminal's hardstatus +# line. The type 'lastline' will reserve the last line of the display for the +# hardstatus. Prepending the word 'always' will force screen to use the type +# even if the terminal supports a hardstatus line. +hardstatus alwayslastline '%{= wk}%?%-Lw%?%{r}(%{k}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %m/%d %C%A' +#hardstatus alwayslastline "%{+b kr}[ %H ] %{ky} Load: %l %-=%{kb} %c %Y.%m.%d" +msgwait 15 + +# Set message displayed on pow_detach (when HUP is sent to screen's parent +# process). +pow_detach_msg "BYE" + +# Set the default program for new windows. +shell -$SHELL + +# Default timeout to trigger an inactivity notify. +silencewait 30 # default: 30 + +# Change text highlighting. See http://bit.ly/11RDGZ +#sorendition gK + +# Do NOT display copyright notice on startup. +startup_message off # default: on + +# Set $TERM for new windows. I have more luck with 'linux' than Terminal's +# default 'xterm-color' (^H problems). Comment out to use the default. +#term linux + +# Tweak termcap, terminfo, and termcapinfo entries for best performance. +termcap linux 'AF=\E[3%dm:AB=\E[4%dm' +termcap xterm-color 'AF=\E[3%dm:AB=\E[4%dm' +terminfo linux 'AF=\E[3%p1%dm:AB=\E[4%p1%dm' +terminfo xterm-color 'AF=\E[3%p1%dm:AB=\E[4%p1%dm' + +# Allow xterm / Terminal scrollbars to access the scrollback buffer. This +# enables the behavior you'd expect, instead of losing the content that scrolls +# out of the window. +termcapinfo linux ti@:te@ +termcapinfo xterm-color ti@:te@ + +# Use visual bell instead of audio bell. +vbell on # default: ??? + +# Message to be displayed when the visual bell is triggered. +vbell_msg " *beep* " diff --git a/sleep b/sleep new file mode 100755 index 0000000..ac3c1ef --- /dev/null +++ b/sleep @@ -0,0 +1,2 @@ +#!/bin/sh +osascript -e 'tell application "Sleep Actions" to activate' diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..0ce4f0f --- /dev/null +++ b/vimrc @@ -0,0 +1,92 @@ +set encoding=utf-8 +set fileencodings= +set nocompatible " use vim defaults +set ls=2 " allways show status line +set tabstop=4 " numbers of spaces of tab character +set shiftwidth=4 " numbers of spaces to (auto)indent +set expandtab " tabs are converted to spaces +set scrolloff=3 " keep 3 lines when scrolling +set showcmd " display incomplete commands +set hlsearch " highlight searches +set incsearch " do incremental searching +set ruler " show the cursor position all the time +set visualbell t_vb= " turn off error beep/flash +set novisualbell " turn off visual bell +set nobackup " do not keep a backup file +set number " show line numbers +set ignorecase " ignore case when searching +"set noignorecase " don't ignore case +"set title " show title in console title bar +"set ttyfast " smoother changes +"set ttyscroll=0 " turn off scrolling, didn't work well with PuTTY +set modeline " last lines in document sets vim mode +set modelines=3 " number lines checked for modelines +set shortmess=atI " Abbreviate messages +set nostartofline " don't jump to first character when paging +set whichwrap=b,s,h,l,<,>,[,] " move freely between files +"set viminfo='20,<50,s10,h +" +"set autoindent " always set autoindenting on +"set smartindent " smart indent +""set cindent " cindent +set noautoindent +set nosmartindent +set nocindent + +"set autowrite " auto saves changes when quitting and swiching buffer +"set sm " show matching braces, somewhat annoying... +"set nowrap " don't wrap lines + +setlocal spelllang=en_us + +call pathogen#runtime_append_all_bundles() + +map :NERDTreeToggle +let NERDTreeIgnore=['\~$', '.pyc', '.egg-info', '.class'] + +if has('gui_running') + set guifont=Inconsolata:h14 + set background=light +else + set background=dark + let g:solarized_termcolors=16 +endif + +filetype plugin indent on +highlight SpellBad term=underline gui=undercurl guisp=Orange +syntax on +colorscheme solarized + +augroup myfiletypes + " Clear old autocmds in group + autocmd! + " autoindent with two spaces, always expand tabs + autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et +augroup END + +" Toggle Solarized Background +function! ToggleBackground() + if (w:solarized_style=="dark") + let w:solarized_style="light" + colorscheme solarized +else + let w:solarized_style="dark" + colorscheme solarized +endif +endfunction +command! ToggleBackground call ToggleBackground() +" nnoremap :call ToggleBackground() +" inoremap :call ToggleBackground()a +" vnoremap :call ToggleBackground() + +" Toggle pyflakes quickfix +let g:pyflakes_use_quickfix=1 +function! TogglePyflakesQf() + if (g:pyflakes_use_quickfix==0) + let g:pyflakes_use_quickfix=1 +else + let g:pyflakes_use_quickfix=0 +endif +endfunction +command! PyflakesQf call TogglePyflakesQf() + diff --git a/wakeup b/wakeup new file mode 100755 index 0000000..14d6215 --- /dev/null +++ b/wakeup @@ -0,0 +1,5 @@ +#!/bin/sh +logger -i 'Mounting all Apple HFS volumes...' +/usr/sbin/diskutil list | \ + awk '/Apple_HFS/ {print $NF}' | \ + xargs -I{} /usr/sbin/diskutil mount {}