Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit b590bb22f520b31dfedfc1b59078002718c883dc @sferik committed Nov 12, 2010
Showing with 1,600 additions and 0 deletions.
  1. +20 −0 LICENSE.mkd
  2. +9 −0 README.mkd
  3. +34 −0 Rakefile
  4. +2 −0 aliases.sh
  5. +50 −0 bashrc
  6. +9 −0 gemrc
  7. +1,265 −0 git-completion.sh
  8. +28 −0 gitconfig
  9. +20 −0 inputrc
  10. +21 −0 irbrc
  11. +1 −0 profile
  12. +4 −0 rdebugrc
  13. +137 −0 vimrc
@@ -0,0 +1,20 @@
+Copyright (c) 2010 Erik Michaels-Ober
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
+Erik Michaels-Ober's Dotfiles
+=============================
+These are config files to set up a system the way I like it.
+
+Installation
+------------
+ git clone git://github.com/ryanb/dotfiles
+ cd dotfiles
+ rake install
@@ -0,0 +1,34 @@
+require 'rake'
+user = %x[whoami].chomp
+desc "Install all dotfiles into #{user}'s home directory"
+task :install do
+ Dir['*'].each do |file|
+ next if %w[Rakefile README.mkd LICENSE.mkd].include? file
+
+ if File.exist?(File.join(ENV['HOME'], ".#{file}"))
+ if File.identical? file, File.join(ENV['HOME'], ".#{file}")
+ puts "identical ~/.#{file}"
+ else
+ print "overwrite ~/.#{file}? [yN] "
+ case $stdin.gets.chomp
+ when 'y'
+ replace_file(file)
+ else
+ puts "skipping ~/.#{file}"
+ end
+ end
+ else
+ link_file(file)
+ end
+ end
+end
+
+def replace_file(file)
+ %x[rm -rf "$HOME/.#{file}"]
+ link_file(file)
+end
+
+def link_file(file)
+ puts "linking ~/.#{file}"
+ %x[ln -s "$PWD/#{file}" "$HOME/.#{file}"]
+end
@@ -0,0 +1,2 @@
+alias ll='/bin/ls -AFGHhl'
+alias ls='/bin/ls -FGH'
@@ -0,0 +1,50 @@
+# Source global definitions
+[[ -s "/etc/bashrc" ]] && source "/etc/bashrc"
+
+# Source global aliases
+[[ -s "$HOME/.aliases.sh" ]] && source "$HOME/.aliases.sh"
+
+# Git completion
+[[ -s "$HOME/.git-completion.sh" ]] && source "$HOME/.git-completion.sh"
+
+# Load RVM into a shell session
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
+
+export INPUTRC="~/.inputrc"
+export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home"
+export PATH="$PATH:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/ec2/bin:~/bin"
+export MANPATH="$MANPATH:/opt/local/man:/usr/local/mysql/man"
+export EDITOR=`which vim`
+
+# Don't put duplicate lines in the history. See bash(1) for more options
+export HISTCONTROL=ignoredups
+# Ignore same sucessive entries.
+export HISTCONTROL=ignoreboth
+
+# Autofix typos
+shopt -s cdspell
+
+# Check the window size after each command and, if necessary,
+# Update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# Make 'less' more friendly for non-text input files, see lesspipe(1)
+[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
+
+if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
+ # We have color support; assume it's compliant with Ecma-48
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
+ # a case would tend to support setf rather than setaf.)
+ color_prompt=yes
+else
+ color_prompt=
+fi
+
+if [ "$color_prompt" = yes ]; then
+ PS1="\[$(tput bold)\]\[$(tput setaf 2)\]\u@\H\[$(tput setaf 1)\] ▿ \$(~/.rvm/bin/rvm-prompt)\n\[$(tput setaf 4)\]✡ \[$(tput sgr0)\]\[$(tput setaf 4)\]\W\[$(tput sgr0)\]/ \[$(tput bold)\]\[$(tput setaf 3)\]\$(__git_ps1 '± %s ')\[$(tput setaf 0)\]\!> \[$(tput sgr0)\]"
+else
+ PS1='\u@\h:\W '
+fi
+unset color_prompt
+
+ssh-add ~/.ssh/id_dsa
@@ -0,0 +1,9 @@
+---
+gem: --no-ri --no-rdoc
+:benchmark: false
+:backtrace: false
+:update_sources: true
+:verbose: true
+:bulk_threshold: 1000
+:sources:
+- http://gems.rubyforge.org/
Oops, something went wrong.

0 comments on commit b590bb2

Please sign in to comment.