Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ction/deletion problem.
  • Loading branch information...
commit 56155e156782e990e2bda8cdb6b3cd216d5f63aa 1 parent 5d3005a
Joe Alba authored
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
4 bash/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"
26 irbrc
View
@@ -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`
20 railsrc
View
@@ -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
2  zsh/config
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
Please sign in to comment.
Something went wrong with that request. Please try again.