Permalink
Browse files

Switch to dotify

  • Loading branch information...
0 parents commit d3aeb9fc754e71b0e971faf586361d76341fc278 @citizen428 committed Aug 3, 2012
Showing with 11,375 additions and 0 deletions.
  1. +2 −0 .ackrc
  2. +17 −0 .dotrc
  3. +16 −0 .ghci
  4. +61 −0 .gitconfig
  5. +20 −0 .gnus
  6. +51 −0 .irbrc
  7. +28 −0 .pryrc
  8. +51 −0 .tmux.conf
  9. +183 −0 .vimrc
  10. +136 −0 .zshrc.local
  11. +13 −0 Gemfile
  12. +47 −0 bin/git-up
  13. +367 −0 bin/git-wtf
  14. +1,229 −0 bin/hub
  15. +10 −0 bin/pow-show
  16. +70 −0 vim/colors/golden.vim
  17. +138 −0 vim/colors/inkpot.vim
  18. +212 −0 vim/colors/ir_black.vim
  19. +406 −0 vim/doc/matchit.txt
  20. +132 −0 vim/plugin/endwise.vim
  21. +812 −0 vim/plugin/matchit.vim
  22. +1,838 −0 vim/plugin/minibufexpl.vim
  23. +32 −0 vim/plugin/slime.vim
  24. +218 −0 vim/plugin/surround/doc/surround.txt
  25. +628 −0 vim/plugin/surround/plugin/surround.vim
  26. +4,414 −0 vim/plugin/taglist.vim
  27. +244 −0 vim/plugin/unimpaired.vim
2 .ackrc
@@ -0,0 +1,2 @@
+--type-set=haml=.haml
+--type-set=sass=.sass
17 .dotrc
@@ -0,0 +1,17 @@
+# Set the editor to use when editing Dotify dotfiles.
+# Default: 'vim'
+# Options: 'vi', 'vim', 'emacs', '[ANY OTHER TERMINAL BASED EDITOR]'
+#
+editor: 'emacsclient -n'
+#
+# Ignoring files in ~/.dotify when linking:
+#
+# ignore:
+# dotify:
+# - '.git'
+# - '.gitignore'
+# - '.gitmodules'
+# # Ignoring files in the home directory when linking:
+# dotify:
+# - '.rbenv'
+# - '.rvm'
16 .ghci
@@ -0,0 +1,16 @@
+:m - Prelude
+:m + GOA
+setLambdabotHome "/Users/michi/.cabal/bin"
+:def pl lambdabot "pl"
+:def unpl lambdabot "unpl"
+:def redo lambdabot "redo"
+:def undo lambdabot "undo"
+:def index lambdabot "index"
+:def docs lambdabot "docs"
+:def instances lambdabot "instances"
+:def hoogle lambdabot "hoogle"
+:def source lambdabot "fptools"
+:def where lambdabot "where"
+:def version lambdabot "version"
+:def src lambdabot "src"
+:set prompt "λ> "
@@ -0,0 +1,61 @@
+[github]
+ user = citizen428
+[user]
+ email = citizen428@gmail.com
+ name = Michael Kohl
+[color]
+ status = auto
+ branch = auto
+ diff = auto
+[alias]
+ # http://gitready.com/intermediate/2009/02/12/easily-fetching-upstream-changes.html
+ pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
+ # Mostly from http://www.metacircus.com/hacking/2011/02/18/play-git-like-a-violin.html
+ # I like using the interactive mode to make complex commits
+ ai = add --interactive
+
+ # All the aliases relate to commits. Note that
+ # they are grouped by common prefixes, so I don't
+ # confuse what I want done by accident.
+ c = commit
+ # commit with a message
+ cm = commit -m
+ cma = commit -a -m
+ # amending the previous commit
+ ca = commit --amend
+ caa = commit -a --amend -C HEAD
+
+ # reset
+ ## soft resets
+ r = reset
+ r1 = reset HEAD^
+ r2 = reset HEAD^^
+ ## hard resets
+ rh = reset --hard
+ rh1 = reset HEAD^ --hard
+ rh1 = reset HEAD^^ --hard
+
+ # shortcuts for commands
+ s = status -sb
+ st = status
+ d = diff
+ a = add
+ co = checkout
+ b = branch
+ l = log
+ f = fetch
+ r = reset
+ p = pull
+ m = merge
+ count = shortlog -sn
+ loggraph = log --color --graph --decorate --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
+[core]
+ excludesfile = ~/.gitignore
+ editor = vim
+[push]
+ default = current
+[merge]
+ tool = opendiff
+ stat = true
+[rerere]
+ enabled = true
20 .gnus
@@ -0,0 +1,20 @@
+(setq gnus-select-method '(nnimap "gmail"
+ (nnimap-address "imap.gmail.com")
+ (nnimap-server-port 993)
+ (nnimap-stream ssl)))
+
+(setq message-send-mail-function 'smtpmail-send-it
+ smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
+ smtpmail-default-smtp-server "smtp.gmail.com"
+ smtpmail-auth-credentials '(("smtp.gmail.com" 587 "citizen428@gmail.com" nil))
+ smtpmail-smtp-server "smtp.gmail.com"
+ smtpmail-smtp-service 587)
+
+(setq mail-host-address "gmail.com")
+(setq user-full-name "Michael Kohl")
+(setq user-mail-address "citizen428@gmail.com")
+
+;; enable aspell to check written text
+; (add-hook 'message-mode-hook (lambda () (flyspell-mode 1)))
+
+
51 .irbrc
@@ -0,0 +1,51 @@
+require 'rubygems'
+
+## Prompt
+IRB.conf[:PROMPT][:CUSTOM] = {
+ :PROMPT_I => ">> ",
+ :PROMPT_S => "%l>> ",
+ :PROMPT_C => ".. ",
+ :PROMPT_N => ".. ",
+ :RETURN => "=> %s\n"
+}
+IRB.conf[:PROMPT_MODE] = :CUSTOM
+IRB.conf[:AUTO_INDENT] = true
+
+## awesome_print
+require 'awesome_print'
+
+## Looksee
+require 'looksee'
+
+## Wirble
+require 'wirble'
+Wirble.init
+Wirble.colorize
+
+require 'methodfinder'
+
+## Aliases
+alias q exit
+
+# Methods
+def ruby_info
+ puts Object.constants.grep(/RUBY/).map{ |c| "%-23s: %s" % [c, Object.const_get(c)] }
+end
+
+def dumphist(num=1)
+ lines = Readline::HISTORY.to_a[-num-1..Readline::HISTORY.length-2]
+ `echo '#{lines.join("\n")}'|pbcopy`
+ lines
+end
+
+# clear screen
+def clear
+ system 'clear'
+end
+
+# idea stolen from irbtools, implementation might be different
+class Object
+ def d
+ self.tap { |s| puts s }
+ end
+end
28 .pryrc
@@ -0,0 +1,28 @@
+## Pry settings
+Pry.config.prompt = Pry::NAV_PROMPT
+Pry.config.editor = "emacsclient -n"
+
+## Custom methods
+def require_safely(*gems)
+ gems.each do |gem|
+ begin
+ require gem
+ rescue LoadError => e
+ puts "Missing library: %s" % e.message.split(/ -- /).last
+ next
+ end
+ end
+end
+
+def ruby_info
+ puts Object.constants.grep(/RUBY/).map{ |c| "%-23s: %s" % [c, Object.const_get(c)] }
+end
+
+## Additional gems
+require_safely 'awesome_print', 'methodfinder', 'shenanigans'
+
+# Blacklist a method that makes methodfinder hang
+if Kernel.methods.include?(:prompt) && defined?(MethodFinder)
+ MethodFinder::INSTANCE_METHOD_BLACKLIST[:Object] << :prompt
+ MethodFinder::CLASS_METHOD_BLACKLIST[:Object] << :prompt
+end
@@ -0,0 +1,51 @@
+# Use saner prefix
+unbind C-b
+set -g prefix C-a
+bind C-a send-prefix
+
+# Vi key bindings in copy mode
+set-option -gw mode-keys vi
+unbind ]
+unbind p
+bind p paste-buffer
+bind -t vi-copy 'v' begin-selection
+bind -t vi-copy 'y' copy-selection
+
+# Switch back to last window easily
+bind Tab last-window
+
+# More intuitive split commands
+bind | split-window -h
+bind - split-window -v
+
+# Source config
+bind r source-file ~/.tmux.conf \; display "Config reloaded!"
+
+# # Proper colors for apps inside tmux
+set -g default-terminal "screen-256color"
+
+# # Allow for faster key repetition
+set -sg escape-time 0
+
+# Start window and pane numbering at 1
+set -g base-index 1
+setw -g pane-base-index 1
+
+# Temporarily turn pane into window
+unbind Up
+bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp
+unbind Down
+bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp
+
+# Quick logging
+bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
+
+# Status bar
+set -g status-bg black
+set -g status-fg white
+set -g status-left "#[fg=green][#S]"
+set -g status-right "#[fg=green]#h #[fg=cyan]%R"
+setw -g window-status-current-bg red
+set -g status-interval 60
+setw -g monitor-activity on
+set -g visual-activity on
Oops, something went wrong.

0 comments on commit d3aeb9f

Please sign in to comment.