Permalink
Browse files

Blitzed railsrc. That was not working. Trying to fix my zsh word sele…

…ction/deletion problem.
  • Loading branch information...
1 parent 5d3005a commit 56155e156782e990e2bda8cdb6b3cd216d5f63aa @joealba committed Sep 14, 2012
Showing with 19 additions and 33 deletions.
  1. +4 −0 bash/config
  2. +13 −13 irbrc
  3. +0 −20 railsrc
  4. +2 −0 zsh/config
View
@@ -38,3 +38,7 @@ export PS1="\[\033[00;36m\]\u@\[\033[$hostcolor\]\h \[\033[00;37m\]\w\[\033[00;3
unset hostname hostcolor
+
+export ORACLE_HOME="/usr/local/lib/oracle"
+#export LD_LIBRARY_PATH="/usr/local/lib/oracle"
+export NLS_LANG="en"
View
26 irbrc
@@ -11,12 +11,12 @@ IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
IRB.conf[:PROMPT_MODE] = :SIMPLE
-%w[rubygems looksee/shortcuts wirble].each do |gem|
- begin
- require gem
- rescue LoadError
- end
-end
+# %w[rubygems looksee/shortcuts wirble].each do |gem|
+# begin
+# require gem
+# rescue LoadError
+# end
+# end
class Object
# list methods which aren't in superclass
@@ -43,13 +43,13 @@ def copy(str)
IO.popen('pbcopy', 'w') { |f| f << str.to_s }
end
-def copy_history
- history = Readline::HISTORY.entries
- index = history.rindex("exit") || -1
- content = history[(index+1)..-2].join("\n")
- puts content
- copy content
-end
+# def copy_history
+# history = Readline::HISTORY.entries
+# index = history.rindex("exit") || -1
+# content = history[(index+1)..-2].join("\n")
+# puts content
+# copy content
+# end
def paste
`pbpaste`
View
20 railsrc
@@ -1,20 +0,0 @@
-#!/usr/bin/ruby
-
-# begin
-# require 'hirb' # sudo gem install cldwalker-hirb --source http://gems.github.com
-# Hirb.enable
-# rescue LoadError
-# end
-
-def change_log(stream)
- ActiveRecord::Base.logger = Logger.new(stream)
- ActiveRecord::Base.clear_active_connections!
-end
-
-def show_log
- change_log(STDOUT)
-end
-
-def hide_log
- change_log(nil)
-end
View
@@ -30,6 +30,8 @@ bindkey "^N" insert-last-word
setopt complete_in_word
+autoload -U select-word-style
+select-word-style bash
## HISTORY configs
HISTFILE=~/.zsh_history

0 comments on commit 56155e1

Please sign in to comment.